bp_cover_load_template

The BuddyPress cover bp cover load template function.

Description

bp_cover_load_template(); 

Usage

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

Defined (1)

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

/bp-cover.php  
  1. function bp_cover_load_template () { 
  2. global $bp; 
  3. $theme=get_option( 'bp_cover_skin' ); 
  4. if (!empty($theme)) { 
  5. require_once ( BPCO_PLUGIN_DIR .'templates/'. $theme . '/theme.php' ); 
  6. }else{ 
  7. require_once ( BPCO_PLUGIN_DIR .'templates/default/theme.php' ); 
  8. }