Function Reference: geodir_is_geodir_page

Summary

Checks whether the current page is a GD page or not.

Global Values

$wp
(object) (required) WordPress object.

Default: None

Package

GeoDirectory

Return Values

(bool)
  • If the page is GD page returns true.
  • Otherwise false.

Change Log

Since: 1.0.0

Source File

geodir_is_geodir_page() is located in geodirectory-functions/general_functions.php [Line: 554]

Source Code

function geodir_is_geodir_page() {
	global $wp;
	if ( isset( $wp->query_vars['gd_is_geodir_page'] ) && $wp->query_vars['gd_is_geodir_page'] ) {
		return true;
	} else {
		return false;
	}
}