wpseo_update_theme_complete_actions

Abuse a filter to check if the current theme was updated and if so, test the updated theme for the title and meta description tag.

Description

wpseo_update_theme_complete_actions( (array) $update_actions, (WP_Theme|string) $updated_theme ); 

Parameters (2)

0. $update_actions (array)
Updated actions set.
1. $updated_theme (WP_Theme|string)
Theme object instance or stylesheet name.

Usage

  1. if ( !function_exists( 'wpseo_update_theme_complete_actions' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yoast-seo/inc/wpseo-non-ajax-functions.php'; 
  3.  
  4. // Updated actions set. 
  5. $update_actions = array(); 
  6.  
  7. // Theme object instance or stylesheet name. 
  8. $updated_theme = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = wpseo_update_theme_complete_actions($update_actions, $updated_theme); 
  12.  

Defined (1)

The function is defined in the following location(s).

/inc/wpseo-non-ajax-functions.php  
  1. function wpseo_update_theme_complete_actions( $update_actions, $updated_theme ) { 
  2. _deprecated_function( __FUNCTION__, 'WPSEO 3.3.0' );