gpeu_forms
Description
Filter the forms available in the Email Users interface.
Usage
add_filter( 'gpeu_forms', 'my_custom_function' );
Parameters
forms array
An array of form meta.
Example
Only Return Specific Forms
add_filter( 'gpeu_forms', function ( $forms ) {
$allowed_forms = array( 123, 456, 789 ); // Replace with Form IDs
$limited_forms = array();
foreach ( $forms as $form ) {
if ( in_array( $form['id'], $allowed_forms ) ) {
array_push( $limited_forms, $form );
}
}
return $limited_forms;
} );
Since
This filter is available since Gravity Forms Email Users 1.3.6.