wp_skip_paused_themes

Advertisement

Summery Summery

Filters a given list of themes, removing any paused themes from it.

Syntax Syntax

wp_skip_paused_themes( string[] $themes )

Parameters Parameters

$themes

(string[]) (Required) Array of absolute theme directory paths.

Return Return

(string[]) Filtered array of absolute paths to themes, without any paused themes.

Source Source

File: wp-includes/load.php

			// Store list of paused plugins for displaying an admin notice.
			$GLOBALS['_paused_plugins'][ $plugin ] = $paused_plugins[ $plugin ];
		}
	}

	return $plugins;
}

/**
 * Retrieves an array of active and valid themes.
 *
 * While upgrading or installing WordPress, no themes are returned.
 *
 * @since 5.1.0
 * @access private
 *
 * @return string[] Array of absolute paths to theme directories.
 */
function wp_get_active_and_valid_themes() {

Advertisement

Changelog Changelog

Changelog
Version Description
5.2.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.