preview_theme_ob_filter

函式
preview_theme_ob_filter ( $content )
Access
Private
引數
  • (string) $content
    Required:
返回值
  • (string)
定義位置
相關方法
preview_theme_ob_filter_callback_preview_theme_template_filter_wp_preview_terms_filter_preview_theme_stylesheet_filterpreview_theme
引入
2.6.0
棄用
4.3.0

preview_theme_ob_filter函式是一個WordPress函式,用來過濾主題預覽頁面的輸出。它用於修改預覽頁面的HTML輸出,例如新增或刪除HTML標籤。

ob_start()的回撥函式,用於捕獲主題中的所有連結。

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

常見問題

FAQs
檢視更多 >