classes/fields/pick.php
public function data_roles( $name = null, $value = null, $options = null, $pod = null, $id = null ) {

		$data = array();

		global $wp_roles;

		foreach ( $wp_roles->role_objects as $key => $role ) {
			$data[ $key ] = $wp_roles->role_names[ $key ];
		}

		return apply_filters( 'pods_form_ui_field_pick_data_roles', $data, $name, $value, $options, $pod, $id );

	}
public function data_roles( $name = null, $value = null, $options = null, $pod = null, $id = null ) {

		$data = array();

		global $wp_roles;

		foreach ( $wp_roles->role_objects as $key => $role ) {
			$data[ $key ] = $wp_roles->role_names[ $key ];
		}

		return apply_filters( 'pods_form_ui_field_pick_data_roles', $data, $name, $value, $options, $pod, $id );

	}
public function data_roles ( $ name = null , $ value = null , $ options = null , $ pod = null , $ id = null ) { $ data = array ( ) ; global $ wp_roles ; foreach ( $ wp_roles -> role_objects as $ key => $ role ) { $ data [ $ key ] = $ wp_roles -> role_names [ $ key ] ; } return apply_filters ( 'pods_form_ui_field_pick_data_roles' , $ data , $ name , $ value , $ options , $ pod , $ id ) ; }
Data callback for User Roles.

@param string|null       $name    The name of the field.
@param string|array|null $value   The value of the field.
@param array|null        $options Field options.
@param array|null        $pod     Pod data.
@param int|null          $id      Item ID.

@return array

@since 2.3.0
Data callback for User Roles .