post_type = new Post_Type(); $this->blocks = new Blocks\Manager(); $this->actions = new Actions\Manager(); $this->form = new Form_Manager(); $this->form_handler = new Form_Handler(); $this->captcha = new Forms_Captcha(); File_Upload::instance(); if ( is_admin() ) { $this->editor = new Admin\Editor(); } } /** * Returns url to file or dir inside plugin folder * * @param string $path Path inside plugin dir. * * @return string */ public function plugin_url( $path = null ) { return JET_FORM_BUILDER_URL . $path; } /** * Returns plugin version */ public function get_version() { return JET_FORM_BUILDER_VERSION; } /** * Plugin constructor. */ private function __construct() { $this->register_autoloader(); add_action( 'after_setup_theme', array( $this, 'init_components' ), 0 ); } } Plugin::instance();