bp_registration_options_get_registered_components

Add BP-Registration-Options as a possible component.

Description

(array) bp_registration_options_get_registered_components( (array) $component_names = array() ); 

Returns (array)

$component_names Array of updated component names.

Parameters (1)

0. $component_names — Optional. (array) => array()
Array of component names.

Usage

  1. if ( !function_exists( 'bp_registration_options_get_registered_components' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bp-registration-options/includes/core.php'; 
  3.  
  4. // Array of component names. 
  5. $component_names = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_registration_options_get_registered_components($component_names); 
  9.  

Defined (1)

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

/includes/core.php  
  1. function bp_registration_options_get_registered_components( $component_names = array() ) { 
  2. // Force $component_names to be an array. 
  3. if ( ! is_array( $component_names ) ) { 
  4. $component_names = array(); 
  5.  
  6. array_push( $component_names, bp_registration_options ); 
  7.  
  8. return $component_names;