supports($post_type) ) { require_once( AT_DIR . 'inc/post-type-' . $post_type .'.php' ); } } //Metaboxes $metaboxes = array('services','employees','testimonials','projects','clients','timeline','singles'); foreach ( $metaboxes as $metabox ) { if ( $this->supports($metabox) ) { require_once( AT_DIR . 'inc/metaboxes/' . $metabox .'-metabox.php' ); } } } /** * Translations */ function i18n() { load_plugin_textdomain( 'athemes-toolbox', false, 'athemes-toolbox/languages' ); } /** * Returns the instance. */ public static function get_instance() { if ( !self::$instance ) self::$instance = new self; return self::$instance; } } function athemes_toolbox_plugin() { if ( !function_exists('wpcf_init') ) {//Make sure the Types plugin isn't active return Athemes_Toolbox::get_instance(); } } add_action('plugins_loaded', 'athemes_toolbox_plugin', 1);