本文整理汇总了PHP中ReduxFrameworkPlugin::get_instance方法的典型用法代码示例。如果您正苦于以下问题:PHP ReduxFrameworkPlugin::get_instance方法的具体用法?PHP ReduxFrameworkPlugin::get_instance怎么用?PHP ReduxFrameworkPlugin::get_instance使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ReduxFrameworkPlugin
的用法示例。
在下文中一共展示了ReduxFrameworkPlugin::get_instance方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: grve_remove_redux_demo_link
function grve_remove_redux_demo_link()
{
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'));
}
}
示例2: remove_demo
function remove_demo()
{
// Used to hide the demo mode link from the plugin page. Only used when Redux is a plugin.
if (class_exists('ReduxFrameworkPlugin')) {
remove_filter('plugin_row_meta', array(ReduxFrameworkPlugin::get_instance(), 'plugin_meta_demo_mode_link'), null, 2);
}
// Used to hide the activation notice informing users of the demo panel. Only used when Redux is a plugin.
remove_action('admin_notices', array(ReduxFrameworkPlugin::get_instance(), 'admin_notices'));
}
示例3: 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
示例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);
}
}
示例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'));
}