当前位置: 首页>>代码示例>>PHP>>正文


PHP add_option_whitelist函数代码示例

本文整理汇总了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;
}
开发者ID:joelglennwright,项目名称:agencypress,代码行数:9,代码来源:mu.php

示例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;
}
开发者ID:fka2004,项目名称:webkit,代码行数:16,代码来源:plugin.php

示例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;
 }
开发者ID:luskyj89,项目名称:mt-wordpress,代码行数:12,代码来源:c2c-plugin.php

示例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;
}
开发者ID:hscale,项目名称:webento,代码行数:6,代码来源:incsub-support.php

示例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;
}
开发者ID:ericandrewlewis,项目名称:wordpress-mu,代码行数:14,代码来源:mu.php

示例6: postie_whitelist

function postie_whitelist($options)
{
    $added = array('postie-settings' => array('postie-settings'));
    $options = add_option_whitelist($added, $options);
    return $options;
}
开发者ID:donwea,项目名称:nhap.org,代码行数:6,代码来源:postie.php

示例7: whitelist_options

 function whitelist_options($options)
 {
     $added = array('chat' => array('chat_default', 'chat_site'));
     $options = add_option_whitelist($added, $options);
     return $options;
 }
开发者ID:hscale,项目名称:webento,代码行数:6,代码来源:wordpress-chat.php


注:本文中的add_option_whitelist函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。