bp_dtheme_page_on_front

Return the ID of a page set as the home page.

Description

(int|bool) bp_dtheme_page_on_front(); 

Returns (int|bool)

ID of page set as the home page


Usage

  1. if ( !function_exists( 'bp_dtheme_page_on_front' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-themes/bp-default/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_dtheme_page_on_front(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-themes/bp-default/functions.php  
  1. function bp_dtheme_page_on_front() { 
  2. if ( 'page' != get_option( 'show_on_front' ) ) 
  3. return false; 
  4.  
  5. return apply_filters( 'bp_dtheme_page_on_front', get_option( 'page_on_front' ) );