Exemplo n.º 1
0
function my_init_function()
{
    if (is_admin()) {
        include_once 'checker/class-piklist-checker.php';
        if (!piklist_checker::check(__FILE__)) {
            return;
        }
    }
}
Exemplo n.º 2
0
function my_init_function()
{
    if (is_admin()) {
        include_once get_template_directory() . '/modules/class-piklist-checker.php';
        if (!piklist_checker::check(__FILE__, 'theme')) {
            return;
        }
    }
}
Exemplo n.º 3
0
function fwe_admin_init()
{
    if (is_admin()) {
        include_once dirname(__FILE__) . '/includes/class-piklist-checker.php';
        if (!piklist_checker::check(__FILE__, 'theme')) {
            return;
        }
    }
}
Exemplo n.º 4
0
 public static function init()
 {
     if (is_admin()) {
         include_once 'includes/class-piklist-checker.php';
         if (!piklist_checker::check(__FILE__)) {
             return;
         }
         add_filter('piklist_part_process-settings', array('piklist_wordpress_helpers', 'assign_workflows'), 1);
         add_filter('piklist_admin_pages', array('piklist_wordpress_helpers', 'admin_pages'));
     }
     self::helpers();
 }
Exemplo n.º 5
0
        public static function show_message($message, $errormsg = true)
        {
            if (!empty(piklist_checker::$plugins) || piklist_checker::$theme == true) {
                ?>

        <div class="error">

            <p>
              <?php 
                echo piklist_checker::message();
                ?>
            </p>

        </div>


      <?php 
            }
        }
        <div class="error">

            <p>
              <?php 
                echo self::message();
                ?>
            </p>

        </div>


      <?php 
            }
        }
    }
    piklist_checker::admin_notices();
    /*
     * Changelog
     *
       
       = 0.5.0 =
     * Now runs in the WordPress admin for a better user experience.
    
       = 0.4.2 =
     * Check if is_plugin_active_for_network function exists
     * Updated to Text Domain: Piklist
    
      = 0.4.1 =
     * Fixed Unterminated Comment Notice
    
     = 0.4.0 =