getArrAddons(); foreach($arrAddons as $addon){ $shortcode = $addon->getName(); UniteFunctionsWPUC::addShortcode($shortcode, "uc_run_shortcode"); } } /** * do all actions on theme setup */ public static function onThemeSetup(){ UniteProviderFunctionsUC::integrateVisualComposer(); } /** * check and disable wp filters */ private function disableWpFilters(){ //disable filters $disableFilters = HelperUC::getGeneralSetting("disable_autop_filters"); $disableFilters = UniteFunctionsUC::strToBool($disableFilters); if($disableFilters == true){ remove_filter( 'the_content', 'wpautop' ); } } /** * * the constructor */ public function __construct(){ self::$t = $this; HelperProviderUC::globalInit(); self::addAction(self::ACTION_AFTER_SETUP_THEME, "onThemeSetup"); self::addAction(self::ACTION_FOOTER_SCRIPTS, "onPrintFooterScripts"); $this->disableWpFilters(); //$this->addShortcodes(); } /** * print footer scripts */ public static function onPrintFooterScripts(){ HelperProviderUC::onPrintFooterScripts(true); } } ?>