remove_custom_background

函式
remove_custom_background ( No parameters )
返回值
  • (null|bool) Whether support was removed.
相關
  • add_custom_background()
定義位置
相關方法
_custom_background_cbadd_custom_backgroundremove_custom_image_headerremove_user_from_blogremove_theme_mod
引入
3.1.0
棄用
3.4.0

remove_custom_background: 這個函式用來刪除WordPress中對自定義背景的支援。自定義背景是用來定製WordPress網站的背景的: 這個函式不需要引數。

取消對自定義背景的支援。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function remove_custom_background() {
_deprecated_function( __FUNCTION__, '3.4.0', 'remove_theme_support( 'custom-background' )' );
return remove_theme_support( 'custom-background' );
}
function remove_custom_background() { _deprecated_function( __FUNCTION__, '3.4.0', 'remove_theme_support( 'custom-background' )' ); return remove_theme_support( 'custom-background' ); }
function remove_custom_background() {
	_deprecated_function( __FUNCTION__, '3.4.0', 'remove_theme_support( 'custom-background' )' );
	return remove_theme_support( 'custom-background' );
}

常見問題

FAQs
檢視更多 >