Astra_Builder_Helper::deprecate_old_header_and_footer( array $args )

Deprecate Header Sections, Mobile Headers, Footer Widgets for new users and migrated users.


Description


Parameters

$args

(array) (Required) The arguments as per the filter.


Return

(array) $args Updated arguments as per the filter.


Source

File: inc/core/builder/class-astra-builder-helper.php

	public function deprecate_old_header_and_footer( $args ) {
		if ( self::$is_header_footer_builder_active ) {
			unset( $args['mobile-header'] );
			unset( $args['header-sections'] );
			unset( $args['advanced-footer'] );
		}

		return $args;
	}

Changelog

Changelog
Version Description
3.0.0 Introduced.

User Contributed Notes

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