Function Reference: geodir_home_page_id

Summary

Get the page ID of the GD home page.

Package

Geodirectory

Return Values

(int|null)
  • Return the page ID if present or null if not.

Change Log

Since: 1.5.4

Source File

geodir_home_page_id() is located in geodirectory-functions/helper_functions.php [Line: 84]

Source Code

function geodir_home_page_id(){
    $gd_page_id = get_option('geodir_home_page');

    if (geodir_is_wpml()) {
        $gd_page_id =  geodir_wpml_object_id($gd_page_id, 'page', true);
    }

    return $gd_page_id;
}