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; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |