create_post_type(); $_arconix_faq->create_taxonomy(); } flush_rewrite_rules(); } add_action( 'after_setup_theme', 'arconix_faq_setup' ); /** * Initialize the plugin. * * Include the libraries, define global variables, instantiate the classes. * * @since 1.0 */ function arconix_faq_setup() { global $_arconix_faq; define( 'ACF_URL', plugin_dir_url( __FILE__ ) ); define( 'ACF_VERSION', '1.1.1'); /** Includes */ require_once( dirname( __FILE__ ) . '/includes/class-faq.php' ); /** Instantiate */ $_arconix_faq = new Arconix_FAQ; } ?>