bp_registration_options_remove_compose_message

Hide Compose menu from pending users.

Description

bp_registration_options_remove_compose_message(); 

Usage

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

Defined (1)

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

/includes/core.php  
  1. function bp_registration_options_remove_compose_message() { 
  2. if ( true === bp_registration_get_moderation_status( get_current_user_id() ) ) { 
  3. bp_core_remove_subnav_item( 'messages', 'compose' );