Astra_Ext_Advanced_Hooks_Loader::get_active_tab( string $default = '' )

Get default/active tab for custom layout admin tables.


Description


Parameters

$default

(string) (Optional) default tab attr.

Default value: ''


Return

(string) $current_tab


Source

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

		public function get_active_tab( $default = '' ) {
			$current_tab = $default;

			if ( ! empty( $_REQUEST['layout_type'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
				$current_tab = $_REQUEST['layout_type']; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
			}

			return $current_tab;
		}

Changelog

Changelog
Version Description
3.6.4 Introduced.


User Contributed Notes

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