- fixed for plugin "The SEO Framework"

This commit is contained in:
Denis Baranov
2018-02-16 12:07:16 +02:00
parent a6164fcf9a
commit 6b29eb3307
+5
View File
@@ -8,6 +8,11 @@ if ( ! defined( 'ABSPATH' ) ) exit;
***/
add_filter('wp_title', 'um_dynamic_user_profile_pagetitle', 100000, 2 );
add_filter('pre_get_document_title', 'um_dynamic_user_profile_pagetitle', 100000, 2 );
/**
* fix for plugin "The SEO Framework"
* @link https://ru.wordpress.org/plugins/autodescription/
*/
add_filter('the_seo_framework_pro_add_title', 'um_dynamic_user_profile_pagetitle', 100000, 2 );
function um_dynamic_user_profile_pagetitle( $title, $sep = '' ) {
$profile_title = UM()->options()->get( 'profile_title' );