Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This hook can be used to add options to admin entry search.
Usage
add_filter( 'frm_admin_search_options', 'add_search_option', 10, 2 );
Parameters
- $options (array)
- $args (array)
- field_options (array) The fields in the form
Examples
Add new search option
This example will add a new search option
add_filter( 'frm_admin_search_options', 'add_search_option', 10, 2 );
function add_search_option( $options, $args ) {
array_push( $options, 'IP' );
return $options;
}
Use with frm_filter_admin_entries hook