Skip to content

Instantly share code, notes, and snippets.

@cjwd-snippets
Created September 29, 2017 16:45
Show Gist options
  • Select an option

  • Save cjwd-snippets/7e395172dab5ac59a02a4ae40046dfc8 to your computer and use it in GitHub Desktop.

Select an option

Save cjwd-snippets/7e395172dab5ac59a02a4ae40046dfc8 to your computer and use it in GitHub Desktop.
Check if piklist is activated
/**
* 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