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


PHP wordfence::install_actions方法代码示例

本文整理汇总了PHP中wordfence::install_actions方法的典型用法代码示例。如果您正苦于以下问题:PHP wordfence::install_actions方法的具体用法?PHP wordfence::install_actions怎么用?PHP wordfence::install_actions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在wordfence的用法示例。


在下文中一共展示了wordfence::install_actions方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: define

/*
Plugin Name: Wordfence Security
Plugin URI: http://www.wordfence.com/
Description: Wordfence Security - Anti-virus, Firewall and High Speed Cache
Author: Wordfence
Version: 5.3.4
Author URI: http://www.wordfence.com/
*/
if (defined('WP_INSTALLING') && WP_INSTALLING) {
    return;
}
define('WORDFENCE_VERSION', '5.3.4');
if (get_option('wordfenceActivated') != 1) {
    add_action('activated_plugin', 'wordfence_save_activation_error');
    function wordfence_save_activation_error()
    {
        update_option('wf_plugin_act_error', ob_get_contents());
    }
}
if (!defined('WORDFENCE_VERSIONONLY_MODE')) {
    //Used to get version from file.
    if ((int) @ini_get('memory_limit') < 128) {
        if (strpos(ini_get('disable_functions'), 'ini_set') === false) {
            @ini_set('memory_limit', '128M');
            //Some hosts have ini set at as little as 32 megs. 64 is the min sane amount of memory.
        }
    }
    require_once 'lib/wordfenceConstants.php';
    require_once 'lib/wordfenceClass.php';
    wordfence::install_actions();
}
开发者ID:HandsomeDogStudio,项目名称:peanutbutterplan,代码行数:31,代码来源:wordfence.php


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