Title: Deprecated function get_feature_flag on premium plugin
Last modified: April 15, 2023

---

# Deprecated function get_feature_flag on premium plugin

 *  Resolved [Denis Žoljom](https://wordpress.org/support/users/dingo_d/)
 * (@dingo_d)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/deprecated-function-get_feature_flag-on-premium-plugin/)
 * I updated the plugins for my client, locally, and I got the following errors:
 *     ```wp-block-code
       ( ! ) Deprecated: Function Yoast\WP\SEO\Conditionals\Schema_Blocks_Conditional::get_feature_flag is <strong>deprecated</strong> since version Yoast SEO 20.5 with no alternative available. in .../wp-includes/functions.php on line 5423
       Call Stack
       #	Time	Memory	Function	Location
       1	0.0004	368664	{main}( )	.../server.php:0
       2	0.0108	413992	require( '.../wp-admin/update-core.php )	.../server.php:250
       3	0.0121	415352	require_once( '.../wp-admin/admin.php )	.../update-core.php:10
       4	0.0122	416168	require_once( '.../wp-load.php )	.../admin.php:34
       5	0.0122	416752	require_once( '.../wp-config.php )	.../wp-load.php:50
       6	0.0123	431640	require_once( '.../wp-settings.php )	.../wp-config.php:104
       7	0.2231	10229496	do_action( $hook_name = 'init' )	.../wp-settings.php:623
       8	0.2231	10229872	WP_Hook->do_action( $args = [0 => ''] )	.../plugin.php:517
       9	0.2231	10229872	WP_Hook->apply_filters( $value = '', $args = [0 => ''] )	.../class-wp-hook.php:332
       10	0.2499	12857928	Yoast\WP\SEO\Loader->load_integrations( '' )	.../class-wp-hook.php:308
       11	0.2509	12927128	Yoast\WP\SEO\Loader->conditionals_are_met( $loadable_class = 'Yoast\\WP\\SEO\\Integrations\\Blocks\\Block_Patterns' )	.../loader.php:209
       12	0.2510	12928424	Yoast\WP\SEO\Conditionals\Feature_Flag_Conditional->is_met( )	.../loader.php:271
       13	0.2510	12928424	Yoast\WP\SEO\Conditionals\Schema_Blocks_Conditional->get_feature_flag( )	.../feature-flag-conditional.php:16
       14	0.2510	12928424	_deprecated_function( $function_name = 'Yoast\\WP\\SEO\\Conditionals\\Schema_Blocks_Conditional::get_feature_flag', $version = 'Yoast SEO 20.5', $replacement = ??? )	.../schema-blocks-conditional.php:20
       15	0.2510	12928744	trigger_error( $message = 'Function Yoast\\WP\\SEO\\Conditionals\\Schema_Blocks_Conditional::get_feature_flag is <strong>deprecated</strong> since version Yoast SEO 20.5 with no alternative available.', $error_level = 16384 )	
       ```
   
 * Any idea what could be causing it? I only see this function being used in the
   SEO plugin.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Jose Varghese](https://wordpress.org/support/users/josevarghese/)
 * (@josevarghese)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/deprecated-function-get_feature_flag-on-premium-plugin/#post-16668770)
 * Hi [@dingo_d](https://wordpress.org/support/users/dingo_d/)
 * Thanks for using Yoast SEO plugin. The deprecated notice (below) is caused by
   having an outdated version of either Yoast SEO (free) or Yoast SEO Premium while
   running the current version of the other. **The current version of both plugins
   is 20.5**. If you use an older version of any Yoast SEO Premium plugins, you 
   will notice the following error.
 * _Deprecated: Function Yoast\WP\SEO\Conditionals\Schema\_Blocks\_Conditional::
   get\_feature\_flag is deprecated since version Yoast SEO 20.5 with no alternative
   available._
 * If you are a premium user (as we cannot verify it as the website URL is not shared),
   please note that this forum is reserved for supporting the free version of Yoast
   SEO. If yes, please contact our support team for assistance if you have an active
   premium subscription. [How can I get premium support?](https://yoast.com/help/support/#premium?utm_source=support&utm_medium=forum&utm_campaign=support-link)
 *  Plugin Support [Jose Varghese](https://wordpress.org/support/users/josevarghese/)
 * (@josevarghese)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/deprecated-function-get_feature_flag-on-premium-plugin/#post-16679075)
 * This thread was marked resolved due to a lack of activity, but you’re always 
   welcome to re-open the topic. Please read [this post](https://wordpress.org/support/topic/read-this-before-your-post/)
   before [opening a new request](https://wordpress.org/support/plugin/wordpress-seo#new-post).
 *  Thread Starter [Denis Žoljom](https://wordpress.org/support/users/dingo_d/)
 * (@dingo_d)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/deprecated-function-get_feature_flag-on-premium-plugin/#post-16679744)
 * Thanks for the answer, it could be that the plugin is outdated. Will check and
   update it 👍🏻

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Deprecated function get_feature_flag on premium plugin’ is closed to 
new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [deprecation](https://wordpress.org/support/topic-tag/deprecation/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [Yoast](https://wordpress.org/support/topic-tag/yoast/)

 * 3 replies
 * 2 participants
 * Last reply from: [Denis Žoljom](https://wordpress.org/support/users/dingo_d/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/deprecated-function-get_feature_flag-on-premium-plugin/#post-16679744)
 * Status: resolved