Function Reference: geodir_buddypress_current_subtab

Summary

Get current buddypress integration page sub tab.

Package

GeoDirectory_BuddyPress_Integration

Parameters

$default
(string) (required) The default value to return when subtab empty.

Default: None

Return Values

(string)
  • Sub tab name.

Change Log

Since: 1.0.0

Source File

geodir_buddypress_current_subtab() is located in geodir_buddypress/includes/gdbuddypress_functions.php [Line: 303]

Source Code

function geodir_buddypress_current_subtab( $default = '' ) {
	$subtab = isset( $_REQUEST['subtab'] ) ? $_REQUEST['subtab'] : '';
	
	if ($subtab=='' && $default!='') {
		$subtab = $default;
	}
	
	return $subtab;
}