Created
January 10, 2016 04:25
-
-
Save sbruner/d0bf54bca71f76e1636b to your computer and use it in GitHub Desktop.
Piklist: Piklist Checker in plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('init', 'my_init_function'); | |
function my_init_function(){ | |
if(is_admin()){ | |
include_once('path-to-file/class-piklist-checker.php'); | |
if (!piklist_checker::check(__FILE__, 'theme')){ //use 'theme' parameter when included in a theme | |
return; | |
} | |
} | |
} | |
?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment