preview_theme_ob_filter_callback

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

preview_theme_ob_filter_callback函式是一個WordPress的函式,被用作preview_theme_ob_filter過濾器的回撥函式。它用於修改預覽頁面的HTML輸出,例如新增或刪除HTML標籤。

操縱預覽主題連結,以控制和保持位置。

preg_replace_callback()的回撥函式,接受和過濾匹配。

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

常見問題

FAQs
檢視更多 >