diff --git a/includes/Handlers/PluginRender.php b/includes/Handlers/PluginRender.php index daf00cebb..8ee3ab0d7 100644 --- a/includes/Handlers/PluginRender.php +++ b/includes/Handlers/PluginRender.php @@ -135,7 +135,7 @@ public static function upcoming_woo_all_products_banner() { } } - public function opt_out_of_sync_clicked() { + public static function opt_out_of_sync_clicked() { $latest_date = gmdate( 'Y-m-d H:i:s' ); update_option( self::MASTER_SYNC_OPT_OUT_TIME, $latest_date ); wp_send_json_success( 'Opted out successfully' );