public static function get_fields() { if (empty(self::$fields)) { $fields = array(); self::$fields = apply_filters('wp_stream_reports_option_fields', $fields); } return self::$fields; }
public static function get_fields() { if (empty(self::$fields)) { $fields = array('reports' => array('title' => __('Reports', 'stream-reports'), 'fields' => array(array('name' => 'role_access', 'title' => __('Role Access', 'stream-reports'), 'type' => 'multi_checkbox', 'desc' => __('Users from the selected roles above will have permission to view and edit Stream Reports. However, only site Administrators can access Stream Reports Settings.', 'stream-reports'), 'choices' => WP_Stream_Settings::get_roles(), 'default' => array('administrator'))))); self::$fields = apply_filters('wp_stream_reports_options_fields', $fields); } return self::$fields; }