/** * Initialization * * @return Appica_CPT_Gallery */ public static function init() { if (null === self::$instance) { self::$instance = new self(); } return self::$instance; }
/** * Load plugin * * Load the text domain and hook up the CPTs * * @since 1.0.0 */ function appica_core_load() { // Load text domain load_plugin_textdomain('appica', false, dirname(plugin_basename(__FILE__)) . '/languages'); // Register the auto loader function spl_autoload_register('appica_loader'); // Let's add some CPTs Appica_CPT_News::init(); Appica_CPT_Team::init(); Appica_CPT_Team_Alt::init(); Appica_CPT_Gallery::init(); Appica_CPT_Pricings::init(); Appica_CPT_Timeline::init(); Appica_CPT_Portfolio::init(); Appica_CPT_App_Gallery::init(); Appica_CPT_Testimonials::init(); Appica_CPT_Gadget_Slideshow::init(); }