get_settings

函式
get_settings ( $option )
引數
  • (string) $option
    Required:
返回值
  • (string)
相關
  • get_option()
定義位置
相關方法
get_user_settingget_settings_errorsget_all_user_settingswp_user_settingswp_get_global_settings
引入
0.71
棄用
2.1.0

get_settings函式是一個WordPress的函式,它檢索網站所有選項的陣列: 這個函式不接受任何引數,並返回一個網站選項的陣列。

根據選項獲得價值。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function get_settings($option) {
_deprecated_function( __FUNCTION__, '2.1.0', 'get_option()' );
return get_option($option);
}
function get_settings($option) { _deprecated_function( __FUNCTION__, '2.1.0', 'get_option()' ); return get_option($option); }
function get_settings($option) {
	_deprecated_function( __FUNCTION__, '2.1.0', 'get_option()' );

	return get_option($option);
}

常見問題

FAQs
檢視更多 >