From a6164fcf9ac00e9c0e30d8092535ec0c3d8820e7 Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Thu, 15 Feb 2018 17:31:51 +0800 Subject: [PATCH 1/2] Add filter to disable UM cron jobs --- includes/core/class-cron.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/core/class-cron.php b/includes/core/class-cron.php index 00a8206f..f0749dc7 100644 --- a/includes/core/class-cron.php +++ b/includes/core/class-cron.php @@ -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' ) ); } From 6b29eb33072ed3325f4c6b606b8f0502c0375dc7 Mon Sep 17 00:00:00 2001 From: Denis Baranov Date: Fri, 16 Feb 2018 12:07:16 +0200 Subject: [PATCH 2/2] - fixed for plugin "The SEO Framework" --- includes/core/um-filters-profile.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/core/um-filters-profile.php b/includes/core/um-filters-profile.php index 1330517e..11686697 100644 --- a/includes/core/um-filters-profile.php +++ b/includes/core/um-filters-profile.php @@ -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' );