bp_groupblog_allow_group_admin_layout

Bp_groupblog_allow_group_admin_layout().

Description

bp_groupblog_allow_group_admin_layout(); 

Usage

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

Defined (1)

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

/bp-groupblog-templatetags.php  
  1. function bp_groupblog_allow_group_admin_layout() { 
  2.  
  3. $opt = get_site_option( 'bp_groupblog_blog_defaults_options' ); 
  4.  
  5. if ( ($opt['group_admin_layout'] == 1) && ($opt['theme'] == 'p2|p2-buddypress') ) { 
  6. return true; 
  7. } else { 
  8. return false;