wp_paused_themes

函式
wp_paused_themes ( No parameters )
返回值
  • (WP_Paused_Extensions_Storage)
定義位置
相關方法
wp_skip_paused_themeswp_using_themeswp_get_themeswp_update_themespaused_themes_notice
引入
-
棄用
-

wp_paused_themes: 這個過濾器用於過濾WordPress中暫停的主題的列表。它在WordPress載入活躍和不活躍的主題列表時被觸發。

獲取用於儲存暫停擴充套件的例項。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function wp_paused_themes() {
static $storage = null;
if ( null === $storage ) {
$storage = new WP_Paused_Extensions_Storage( 'theme' );
}
return $storage;
}
function wp_paused_themes() { static $storage = null; if ( null === $storage ) { $storage = new WP_Paused_Extensions_Storage( 'theme' ); } return $storage; }
function wp_paused_themes() {
	static $storage = null;

	if ( null === $storage ) {
		$storage = new WP_Paused_Extensions_Storage( 'theme' );
	}

	return $storage;
}

常見問題

FAQs
檢視更多 >