Merge branch 'master' of https://github.com/ultimatemember/ultimatemember into fix/permalink_base

This commit is contained in:
nikitozzzzzzz
2018-02-18 13:28:03 +02:00
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -8,6 +8,10 @@ if ( ! class_exists( 'Cron' ) ) {
class Cron {
public function __construct() {
$um_cron = apply_filters('um_cron_disable', false );
if( $um_cron ) return;
add_filter( 'cron_schedules', array( $this, 'add_schedules' ) );
add_action( 'wp', array( $this, 'schedule_Events' ) );
}
+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' );