caldera_forms_get_roles

Get all editable WordPress roles.

Description

(array) caldera_forms_get_roles(); 

Returns (array)


Usage

  1. if ( !function_exists( 'caldera_forms_get_roles' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'caldera-forms/includes/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = caldera_forms_get_roles(); 
  7.  

Defined (1)

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

/includes/functions.php  
  1. function caldera_forms_get_roles() { 
  2. global $wp_roles; 
  3. $all_roles = $wp_roles->roles; 
  4. return apply_filters( 'editable_roles', $all_roles ); 
  5.