Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/blueversion/wp-content/plugins/give/includes/admin/ |
Upload File : |
<?php
/**
* Get current setting tab.
*
* @since 1.8
* @return string
*/
function give_get_current_setting_tab() {
// Get current setting page.
$current_setting_page = give_get_current_setting_page();
/**
* Filter the default tab for current setting page.
*
* @since 1.8
*
* @param string
*/
$default_current_tab = apply_filters( "give_default_setting_tab_{$current_setting_page}", 'general' );
// Get current tab.
$current_tab = empty( $_GET['tab'] ) ? $default_current_tab : urldecode( $_GET['tab'] );
// Output.
return $current_tab;
}
/**
* Get current setting section.
*
* @since 1.8
* @return string
*/
function give_get_current_setting_section() {
// Get current tab.
$current_tab = give_get_current_setting_tab();
/**
* Filter the default section for current setting page tab.
*
* @since 1.8
*
* @param string
*/
$default_current_section = apply_filters( "give_default_setting_tab_section_{$current_tab}", '' );
// Get current section.
$current_section = empty( $_REQUEST['section'] ) ? $default_current_section : urldecode( $_REQUEST['section'] );
// Output.
return $current_section;
}
/**
* Get current setting page.
*
* @since 1.8
* @return string
*/
function give_get_current_setting_page() {
// Get current page.
$setting_page = ! empty( $_GET['page'] ) ? urldecode( $_GET['page'] ) : '';
// Output.
return $setting_page;
}
/**
* This function will fetch all the groups of a current section.
*
* @since 2.5.5
*
* @return array
*/
function give_get_settings_groups() {
$current_section = give_get_current_setting_section();
return apply_filters( 'give_get_groups_' . $current_section, array() );
}