wp_update_themes

wp_update_themes

Hook Type: action

See hook in core

Displaying hooks found in version: siteguard.1.7.8

do_action('wp_update_themes') is found 1 times:

  • /classes/siteguard-updates-notify.php line 185
     
    	private static function themes_update_check( &$message, $allOrActive ) {
    		global $siteguard_config;
    		$notified = $siteguard_config->get( 'notified' );
    		do_action( 'wp_update_themes' ); // force WP to check for theme updates
    		$update_themes = get_site_transient( 'update_themes' ); // get information of updates
    		if ( ! empty( $update_themes->response ) ) { // any theme updates available?
    			$themes_need_update = $update_themes->response; // themes that need updating
    			if ( 2 == $allOrActive ) { // are we to check just active themes?
    				$active_theme       = array( get_option( 'template' ) => array() ); // find current theme that is active
    				$themes_need_update = array_intersect_key( $themes_need_update, $active_theme ); // only keep theme that is active