Description
The gravityflow_status_fields filter is used to customize the field columns displayed in the status page in the admin UI when a form is selected. The Status Block settings or shortcode parameters can be used to do the same in the front end.
Parameters
Parameter | Type | Details |
---|---|---|
$field_ids | Array | The field IDs that should be displayed in the status page. |
Examples
Sets the field columns to fields with id 1, 2 and 3
add_filter( 'gravityflow_status_fields', 'sh_gravityflow_status_fields' );
function sh_gravityflow_status_fields( $field_ids ){
// list the IDs of your fields here.
$field_ids = array( 1,2,3);
return $field_ids;
}
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?