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

Get default/active tab for CPT admin tables.


Description


Parameters

$default

(string) (Optional) default tab attr.

Default value: ''


Return

(string) $current_tab


Source

File: admin/core/class-astra-addon-admin-loader.php

	public static 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
4.0.0 Introduced.

User Contributed Notes

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