wp_update_themes
wp_update_themes
Appears in: siteguard.1.4.3, siteguard.1.5.0, siteguard.1.5.1, siteguard.1.5.2, siteguard.1.6.0, siteguard.1.6.1, siteguard.1.7.1, siteguard.1.7.2, siteguard.1.7.3, siteguard.1.7.5, siteguard.1.7.6, siteguard.1.7.7, siteguard.1.7.8
Hook Type: action
Displaying hooks found in version: siteguard.1.7.8do_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