remove_option_whitelist

函式
remove_option_whitelist ( $del_options, $options = '' )
引數
  • (array) $del_options
    Required:
  • (string|array) $options
    Required:
    Default: (empty)
返回值
  • (array)
定義位置
相關方法
add_option_whitelistremove_option_update_handlerremove_allowed_optionsremove_actionremove_all_actions
引入
2.7.0
棄用
5.5.0

remove_option_whitelist: 這個函式用來從WordPress的選項白名單中刪除一個選項。選項白名單是用來防止未經授權的使用者修改WordPress中的某些選項: 這個函式有一個引數,是要刪除的選項的名稱。

從允許選項列表中刪除一個選項列表。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function remove_option_whitelist( $del_options, $options = '' ) {
_deprecated_function( __FUNCTION__, '5.5.0', 'remove_allowed_options()' );
return remove_allowed_options( $del_options, $options );
}
function remove_option_whitelist( $del_options, $options = '' ) { _deprecated_function( __FUNCTION__, '5.5.0', 'remove_allowed_options()' ); return remove_allowed_options( $del_options, $options ); }
function remove_option_whitelist( $del_options, $options = '' ) {
	_deprecated_function( __FUNCTION__, '5.5.0', 'remove_allowed_options()' );

	return remove_allowed_options( $del_options, $options );
}

常見問題

FAQs
檢視更多 >