Astra_Ext_Advanced_Hooks_Markup::__construct()
Constructor
Description
Source
File: addons/advanced-hooks/classes/class-astra-ext-advanced-hooks-markup.php
public function __construct() { add_action( 'wp', array( $this, 'load_advanced_hooks_template' ), 1 ); add_action( 'wp', array( $this, 'load_markup' ), 1 ); add_action( 'wp', array( $this, 'remove_navigation_markup' ), 1 ); if ( defined( 'UAGB_VER' ) && version_compare( preg_replace( '/[^0-9\.]/', '', UAGB_VER ), '1.23.0', '>=' ) ) { add_action( 'wp_enqueue_scripts', array( $this, 'load_ultimate_gutenberg_blocks_assets' ) ); } else { add_action( 'wp', array( $this, 'load_ultimate_gutenberg_blocks_assets' ) ); } add_action( 'template_redirect', array( $this, 'advanced_hook_template_frontend' ) ); add_action( 'wp_enqueue_scripts', array( $this, 'add_styles' ) ); add_action( 'astra_advanced_hook_template', array( $this, 'template_empty_content' ) ); add_filter( 'wp_enqueue_scripts', array( $this, 'advanced_hook_scripts' ) ); add_filter( 'the_content', array( $this, 'advanced_hook_content_markup' ) ); add_filter( 'single_template', array( $this, 'get_custom_post_type_template' ) ); /* Add Body Classes */ add_filter( 'body_class', array( $this, 'body_classes' ), 10, 1 ); add_action( 'astra_get_css_files', array( $this, 'add_front_styles' ) ); add_action( 'astra_get_js_files', array( $this, 'add_scripts' ) ); add_filter( 'astra_addon_js_localize', array( $this, 'localize_variables' ) ); add_filter( 'astra_dynamic_css', array( $this, 'astra_ext_advanced_hooks_dynamic_css' ) ); }
Expand full source code Collapse full source code View on Trac