register_location( 'header' ); $elementor_theme_manager->register_location( 'footer' ); } /** * Header Support * * @return void */ public function ascend_elementor_do_header() { $did_location = Module::instance()->get_locations_manager()->do_location( 'header' ); if ( $did_location ) { remove_action( 'ascend_header', 'ascend_header_markup' ); } } /** * Footer Support * * @return void */ public function ascend_elementor_do_footer() { $did_location = Module::instance()->get_locations_manager()->do_location( 'footer' ); if ( $did_location ) { remove_action( 'ascend_footer', 'ascend_footer_markup' ); } } } /** * Kicking this off by calling 'get_instance()' method */ Ascend_Elementor_Pro::get_instance(); }