GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
Public Member Functions | |
add_input_label ( $input_labels=array()) | |
add_input_type ( $input_type) | |
Turns Chained Select inputs into the same choices as select/radio inputs. More... | |
modify_searchable_fields ( $fields, $form_id) | |
Don't show inputs of the Chained Select field, only the parent. More... | |
modify_searchable_fields_allowlist ( $searchable_fields, $view, $with_full_field) | |
Allow all inputs of a Chained Select field to be searched, even though only the parent is added to the widget. More... | |
print_scripts ( $search_widget, $search_field) | |
Enqueues and prints the required scripts for. More... | |
print_styles ( $search_widget, $search_field) | |
Outputs inline style for vertical display. More... | |
set_input_type ( $input_type, $field_type, $field_id) | |
Turns Chained Select inputs into the same choices as select/radio inputs. More... | |
Public Member Functions inherited from GravityView_Plugin_and_Theme_Hooks | |
__construct () | |
GravityView_Theme_Support constructor. More... | |
_wp_loaded () | |
Fired when all themes and plugins have been loaded. More... | |
merge_content_meta_keys ( $meta_keys=array(), $post=null, & $views=null) | |
Merge plugin or theme meta keys that store shortcode data with existing keys to check. More... | |
merge_meta_keys ( $meta_keys=array(), $post_id=0) | |
Merge plugin or theme meta keys that store shortcode data with existing keys to check. More... | |
merge_noconflict_scripts ( $handles) | |
Merge plugin or theme scripts with existing no-conflict scripts. More... | |
merge_noconflict_styles ( $handles) | |
Merge plugin or theme styles with existing no-conflict styles. More... | |
merge_post_type_support ( $supports=array(), $is_hierarchical=false) | |
Merge plugin or theme post type support definitions with existing support values. More... | |
Static Public Member Functions | |
static | get_field_values ( $gf_field) |
Data Fields | |
const | INPUT_TYPE = 'chainedselect' |
Protected Member Functions | |
add_hooks () | |
Protected Member Functions inherited from GravityView_Plugin_and_Theme_Hooks | |
add_hooks () | |
Add filters for meta key and script/style handles, if defined. More... | |
Protected Attributes | |
$constant_name = 'GF_CHAINEDSELECTS_VERSION' | |
Protected Attributes inherited from GravityView_Plugin_and_Theme_Hooks | |
$class_name = false | |
string Optional. More... | |
$constant_name = false | |
string Optional. More... | |
$content_meta_keys = array() | |
Define the keys to be parsed by the gravityview/view_collection/from_post/meta_keys hook. More... | |
$function_name = false | |
string Optional. More... | |
$meta_keys = array() | |
Define the keys to be parsed by the gravityview/data/parse/meta_keys hook. More... | |
$post_type_support = array() | |
Define features in the admin editor used by the theme or plugin to be used when registering the GravityView post type. More... | |
$script_handles = array() | |
Define script handles used by the theme or plugin to be added to allowed no-conflict scripts. More... | |
$style_handles = array() | |
Define style handles used by the theme or plugin to be added to allowed no-conflict styles. More... | |
Definition at line 13 of file class-gravityview-plugin-hooks-gravity-forms-chainedselects.php.
|
protected |
Definition at line 25 of file class-gravityview-plugin-hooks-gravity-forms-chainedselects.php.
add_input_label | ( | $input_labels = array() | ) |
Definition at line 193 of file class-gravityview-plugin-hooks-gravity-forms-chainedselects.php.
add_input_type | ( | $input_type | ) |
Turns Chained Select inputs into the same choices as select/radio inputs.
array | $input_types | Associative array: key is field name , value is array of GravityView input types (note: use input_text for text ). |
Definition at line 228 of file class-gravityview-plugin-hooks-gravity-forms-chainedselects.php.
|
static |
GF_Field | $gf_field |
Definition at line 178 of file class-gravityview-plugin-hooks-gravity-forms-chainedselects.php.
References $gf_field, and Utils\_REQUEST().
modify_searchable_fields | ( | $fields, | |
$form_id | |||
) |
Don't show inputs of the Chained Select field, only the parent.
array | $fields | Array of searchable fields, as fetched by gravityview_get_form_fields() |
int | $form_id |
Definition at line 210 of file class-gravityview-plugin-hooks-gravity-forms-chainedselects.php.
References $field.
modify_searchable_fields_allowlist | ( | $searchable_fields, | |
$view, | |||
$with_full_field | |||
) |
Allow all inputs of a Chained Select field to be searched, even though only the parent is added to the widget.
array | $searchable_fields | Array of GravityView-formatted fields or only the field ID? Example: [ '1.2', 'created_by' ] |
\GV\View | $view | Object of View being searched. |
bool | $with_full_field | Does $searchable_fields contain the full field array or just field ID? Default: false (just field ID) |
The first time through, it's just field IDs. We want the full details that include input type.
Definition at line 52 of file class-gravityview-plugin-hooks-gravity-forms-chainedselects.php.
References $field.
print_scripts | ( | $search_widget, | |
$search_field | |||
) |
Enqueues and prints the required scripts for.
GravityView_Widget_Search | $this | GravityView Widget instance |
array | $search_field |
Definition at line 139 of file class-gravityview-plugin-hooks-gravity-forms-chainedselects.php.
References $search_field, and gravityview().
print_styles | ( | $search_widget, | |
$search_field | |||
) |
Outputs inline style for vertical display.
GravityView_Widget_Search | $this | GravityView Widget instance |
array{key:string,label:string,value:string,type:string,choices:array} | $search_field |
Prevent Chained Select Search Bar input fields from outputting styles.
bool | $should_print_styles | True: Output styles; False: don't. |
GravityView_Widget_Search | $this | GravityView Widget instance. |
array{key:string,label:string,value:string,type:string,choices:array} | $search_field |
Definition at line 88 of file class-gravityview-plugin-hooks-gravity-forms-chainedselects.php.
References $search_field.
set_input_type | ( | $input_type, | |
$field_type, | |||
$field_id | |||
) |
Turns Chained Select inputs into the same choices as select/radio inputs.
array | $input_types | Associative array: key is field name , value is array of GravityView input types (note: use input_text for text ). |
Definition at line 242 of file class-gravityview-plugin-hooks-gravity-forms-chainedselects.php.
|
protected |
Definition at line 18 of file class-gravityview-plugin-hooks-gravity-forms-chainedselects.php.
const INPUT_TYPE = 'chainedselect' |
Definition at line 20 of file class-gravityview-plugin-hooks-gravity-forms-chainedselects.php.