Created
September 29, 2017 16:45
-
-
Save cjwd-snippets/7e395172dab5ac59a02a4ae40046dfc8 to your computer and use it in GitHub Desktop.
Check if piklist is activated
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
| /** | |
| * This plugin depends on Piklist | |
| * | |
| * Is the piklist plugin activated? | |
| * | |
| * @since 1.0.0 | |
| */ | |
| public function is_piklist_activated() { | |
| if( is_admin() ) { | |
| include_once dirname( plugin_dir_path( __FILE__ ) ) . '/includes/class-piklist-checker.php'; | |
| if (!piklist_checker::check( plugin_dir_url( dirname( __FILE__ ) ) . 'cwiki.php' ) ){ | |
| return; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment