bp_registration_options_tab_menu

Create our tab navigation between setting pages.

Description

bp_registration_options_tab_menu( (string) $page = '' ); 

Parameters (1)

0. $page — Optional. (string) => ''
Page title to render.

Usage

  1. if ( !function_exists( 'bp_registration_options_tab_menu' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bp-registration-options/includes/admin.php'; 
  3.  
  4. // Page title to render. 
  5. $page = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_registration_options_tab_menu($page); 
  9.  

Defined (1)

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

/includes/admin.php  
  1. function bp_registration_options_tab_menu( $page = '' ) { 
  2.  
  3. $member_requests = bp_registration_get_pending_user_count(); ?> 
  4.  
  5. <h1><?php esc_html_e( 'BP Registration Options', 'bp-registration-options' ); ?></h1> 
  6. <h2 class="nav-tab-wrapper"> 
  7. <a class="nav-tab<?php if ( ! $page ) { echo ' nav-tab-active'; } ?>" href="<?php echo esc_attr( admin_url( 'admin.php?page=bp_registration_options' ) ); ?>"><?php esc_html_e( 'General Settings', 'bp-registration-options' ); ?></a> 
  8. <a class="nav-tab<?php if ( requests === $page ) { echo ' nav-tab-active'; } ?>" href="<?php echo esc_attr( admin_url( 'admin.php?page=bp_registration_options_member_requests' ) ); ?>"><?php _e( 'Member Requests', 'bp-registration-options' ); ?> (<?php echo $member_requests;?>)</a> 
  9. <?php // <a class="nav-tab<?php if ( $page == 'banned' ) echo ' nav-tab-active';?" <?php //href="<?php echo admin_url( 'admin.php?page=bp_registration_options_banned' ); ?"><?php //_e( 'Banned', 'bp-registration-options' ); </a>?> 
  10. <?php // <a class="nav-tab<?php if ( 'help' === $page ) { echo ' nav-tab-active'; } ?><?php //" href="<?php echo esc_attr( admin_url( 'admin.php?page=bp_registration_options_help_support' ) ); "><?php esc_html_e( 'Help / Support', 'bp-registration-options' ); //</a> ?> 
  11. </h2> 
  12. <?php }