Ejemplo n.º 1
0
 /**
  *
  * Used to setup the plugin
  *
  * @param $file
  * @author Tim Perry
  *
  */
 public function init($file)
 {
     parent::init($file);
     $this->shortcodeHelper->registerShortcodes();
     $this->acfHelper->registerFieldGroups();
     add_action('admin_init', array($this, "adminInit"));
     add_action('admin_menu', array($this, "adminMenu"));
     add_action('admin_notices', array($this, "adminNotices"));
 }
Ejemplo n.º 2
0
 /**
  *
  * Called after the theme is setup, allows us to setup hooks
  * post types, taxonomies etc
  *
  * @author Tim Perry
  *
  */
 public function afterSetupTheme()
 {
     $this->imageSizesHelper->registerImageSizes();
     $this->postTypeHelper->registerPostTypes();
     $this->taxonomyHelper->registerTaxonomies();
     $this->fieldsHelper->registerFieldGroups();
     $this->hooker->hookUp();
     $this->shortcodeHelper->registerShortcodes();
 }