本文整理汇总了PHP中add_option_whitelist函数的典型用法代码示例。如果您正苦于以下问题:PHP add_option_whitelist函数的具体用法?PHP add_option_whitelist怎么用?PHP add_option_whitelist使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了add_option_whitelist函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: mu_options
function mu_options($options)
{
$removed = array('general' => array('siteurl', 'home', 'admin_email', 'default_role'), 'reading' => array('gzipcompression'), 'writing' => array('ping_sites', 'mailserver_login', 'mailserver_pass', 'default_email_category', 'mailserver_port', 'mailserver_url'));
$added = array('general' => array('new_admin_email', 'WPLANG', 'language'));
$options['misc'] = array();
$options = remove_option_whitelist($removed, $options);
$options = add_option_whitelist($added, $options);
return $options;
}
示例2: option_update_filter
/**
* {@internal Missing Short Description}}
*
* @since 2.7.0
*
* @param unknown_type $options
* @return unknown
*/
function option_update_filter($options)
{
global $new_whitelist_options;
if (is_array($new_whitelist_options)) {
$options = add_option_whitelist($new_whitelist_options, $options);
}
return $options;
}
示例3: whitelist_options
/**
* Whitelist the plugin's option(s)
*
* @param array $options Array of options
* @return array The whitelist-amended $options array
*/
public function whitelist_options($options)
{
$added = array($this->admin_options_name => array($this->admin_options_name));
$options = add_option_whitelist($added, $options);
return $options;
}
示例4: incsub_support_whitelist_options
function incsub_support_whitelist_options($options)
{
$added = array('incsub_support' => array('incsub_support_menu_name'));
$options = add_option_whitelist($added, $options);
return $options;
}
示例5: mu_options
function mu_options($options)
{
if (defined('POST_BY_EMAIL')) {
$writing = array('ping_sites');
} else {
$writing = array('ping_sites', 'mailserver_login', 'mailserver_pass', 'default_email_category', 'mailserver_port', 'mailserver_url');
}
$removed = array('general' => array('siteurl', 'home', 'admin_email', 'users_can_register', 'default_role'), 'reading' => array('gzipcompression'), 'writing' => $writing);
$added = array('general' => array('new_admin_email', 'WPLANG', 'language'));
$options['misc'] = array();
$options = remove_option_whitelist($removed, $options);
$options = add_option_whitelist($added, $options);
return $options;
}
示例6: postie_whitelist
function postie_whitelist($options)
{
$added = array('postie-settings' => array('postie-settings'));
$options = add_option_whitelist($added, $options);
return $options;
}
示例7: whitelist_options
function whitelist_options($options)
{
$added = array('chat' => array('chat_default', 'chat_site'));
$options = add_option_whitelist($added, $options);
return $options;
}