• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP ReduxFrameworkPlugin类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: remove_demo

 function remove_demo()
 {
     if (class_exists('ReduxFrameworkPlugin')) {
         remove_filter('plugin_row_meta', array(ReduxFrameworkPlugin::instance(), 'plugin_metalinks'), null, 2);
         remove_action('admin_notices', array(ReduxFrameworkPlugin::instance(), 'admin_notices'));
     }
 }
开发者ID:mauricioabisay,项目名称:loc,代码行数:7,代码来源:options-init.php


示例2: removeDemoModeLink

 function removeDemoModeLink()
 {
     // Be sure to rename this function to something more unique
     if (class_exists('ReduxFrameworkPlugin')) {
         remove_filter('plugin_row_meta', array(ReduxFrameworkPlugin::get_instance(), 'plugin_metalinks'), null, 2);
     }
     if (class_exists('ReduxFrameworkPlugin')) {
         remove_action('admin_notices', array(ReduxFrameworkPlugin::get_instance(), 'admin_notices'));
     }
 }
开发者ID:QuackenbushDev,项目名称:prso-gravity-forms-adv-uploader,代码行数:10,代码来源:class.prso-gravity-forms-adv-uploader.php


示例3: plugin_dir_path

 * Version:         3.5.8.15
 * Text Domain:     redux-framework
 * License:         GPL3+
 * License URI:     http://www.gnu.org/licenses/gpl-3.0.txt
 * Domain Path:     ReduxCore/languages
 * Provides:        ReduxFramework
 *
 * @package         ReduxFramework
 * @author          Dovy Paukstys <[email protected]>
 * @author          Kevin Provance <[email protected]>
 * @license         GNU General Public License, version 3
 * @copyright       2012-2016 Redux.io
 */
// Exit if accessed directly
if (!defined('ABSPATH')) {
    die;
}
// Require the main plugin class
require_once plugin_dir_path(__FILE__) . 'class.redux-plugin.php';
// Register hooks that are fired when the plugin is activated and deactivated, respectively.
register_activation_hook(__FILE__, array('ReduxFrameworkPlugin', 'activate'));
register_deactivation_hook(__FILE__, array('ReduxFrameworkPlugin', 'deactivate'));
// Get plugin instance
//add_action( 'plugins_loaded', array( 'ReduxFrameworkPlugin', 'instance' ) );
// The above line prevents ReduxFramework from instancing until all plugins have loaded.
// While this does not matter for themes, any plugin using Redux will not load properly.
// Waiting until all plugins have been loaded prevents the ReduxFramework class from
// being created, and fails the !class_exists('ReduxFramework') check in the sample_config.php,
// and thus prevents any plugin using Redux from loading their config file.
ReduxFrameworkPlugin::instance();
开发者ID:planitwell,项目名称:redux-framework,代码行数:30,代码来源:redux-framework.php


示例4: removeDemoModeLink

/**

	Used to hide the demo mode link from the plugin page. Only used when Redux is a plugin.

**/
function removeDemoModeLink()
{
    if (class_exists('ReduxFrameworkPlugin')) {
        remove_filter('plugin_row_meta', array(ReduxFrameworkPlugin::get_instance(), 'plugin_meta_demo_mode_link'), null, 2);
    }
}
开发者ID:Bitcoinsulting,项目名称:website-ads,代码行数:11,代码来源:sample-config.php


示例5: init

 public static function init()
 {
     # Removing Demo Mode (Redux Framework)
     if (class_exists('ReduxFrameworkPlugin')) {
         remove_filter('plugin_row_meta', array(ReduxFrameworkPlugin::get_instance(), 'plugin_metalinks'), null, 2);
         remove_action('admin_notices', array(ReduxFrameworkPlugin::get_instance(), 'admin_notices'));
     }
     # Register Menus
     register_nav_menu('header-menu', __('Header Menu', 'prodo'));
     register_nav_menu('footer-menu', __('Footer Menu', 'prodo'));
 }
开发者ID:jamestrevorlees,项目名称:odd-web-v1.00,代码行数:11,代码来源:register.php


示例6: get_instance

 public static function get_instance()
 {
     if (!self::$instance) {
         self::$instance = new self();
         self::$instance->get_redux_options();
         self::$instance->includes();
         self::$instance->hooks();
     }
     return self::$instance;
 }
开发者ID:un1coin,项目名称:ovn-space,代码行数:10,代码来源:class.redux-plugin.php


示例7: get_instance

 /**
  * Return an instance of this class.
  *
  * @since     1.0.0
  *
  * @return    object    A single instance of this class.
  */
 public static function get_instance()
 {
     // If the single instance hasn't been set, set it now.
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
开发者ID:Bitcoinsulting,项目名称:website-ads,代码行数:15,代码来源:class-redux-plugin.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP ReduxFramework_typography类代码示例发布时间:2022-05-23
下一篇:
PHP ReduxFrameworkInstances类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap