Astra_Ext_Advanced_Hooks_Markup::admin_bar_menu( object $wp_admin_bar )

Admin Menu


Description


Parameters

$wp_admin_bar

(object) (Required) Menu object.


Return

(void)


Source

File: addons/advanced-hooks/classes/class-astra-ext-advanced-hooks-markup.php

			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' ) );
		}


		/**
		 * Get the classes for custom layout.
		 *
		 * @param int  $post_id post id.
		 * @param bool $layout is header | footer | 404-page.
		 */
		private function prepare_astra_header_filter( $post_id, $layout ) {

			$hide_classes = explode( ' ', $this->get_display_device( $post_id, false ) );

			if ( 'footer' === $layout && true === astra_addon_builder_helper()->is_header_footer_builder_active ) {
				add_action( 'astra_footer', array( Astra_Builder_Footer::get_instance(), 'footer_markup' ), 1 );
			}

			if ( ! static::get_time_duration_eligibility( $post_id ) ) {
				return;

User Contributed Notes

You must log in before being able to contribute a note or feedback.