Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
PUM_Admin_Settings::get_active_section()
Description Description
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Return Return
(bool|int|null|string)
Source Source
File: classes/Admin/Settings.php
public static function get_active_section() { $active_tab = self::get_active_tab(); $sections = self::sections(); $tab_sections = ! empty( $sections[ $active_tab ] ) ? $sections[ $active_tab ] : false; if ( ! $tab_sections ) { return false; } return isset( $_GET['section'] ) && array_key_exists( $_GET['section'], $tab_sections ) ? sanitize_text_field( $_GET['section'] ) : key( $tab_sections ); }
Expand full source code Collapse full source code View on Trac