public function register_parser() { $sections_loaded = self::$sections_loaded; if (!in_array('toolset_parser', $sections_loaded)) { $sections_loaded[] = 'toolset_parser'; if (!class_exists('Toolset_Regex')) { require_once TOOLSET_COMMON_PATH . '/expression-parser/parser.php'; } self::$sections_loaded = $sections_loaded; } }
/** * Apply a filter on the array of names loaded sections. * * @param string $filter_name Name of the filter. * @since 2.1 */ private function apply_filters_on_sections_loaded($filter_name) { self::$sections_loaded = apply_filters($filter_name, self::$sections_loaded); }