當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ReduxFrameworkPlugin類代碼示例

本文整理匯總了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 <dovy@reduxframework.com>
 * @author          Kevin Provance <kevin@reduxframework.com>
 * @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;未經允許,請勿轉載。