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