preview_theme

函式
preview_theme ( No parameters )

preview_theme函式是一個WordPress函式,用於在啟用一個主題之前預覽它。它用於在一個單獨的頁面上載入主題的預覽,這樣使用者就可以在啟用主題之前看到它的樣子。

啟動預覽主題輸出緩衝區。

只有當使用者有許可權並且模板和預覽查詢變數存在時,才會執行任務。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function preview_theme() {
_deprecated_function( __FUNCTION__, '4.3.0' );
}
function preview_theme() { _deprecated_function( __FUNCTION__, '4.3.0' ); }
function preview_theme() {
	_deprecated_function( __FUNCTION__, '4.3.0' );
}

常見問題

FAQs
檢視更多 >