Custom global login message

add_filter( ‘frm_global_login_msg’, ‘custom_global_login_message’ ); function custom_global_login_message( $message ) { $frm_settings = FrmAppHelper::get_settings(); $frm_login_msg = $frm_settings->login_msg; if ( substr_count( $frm_login_msg, ‘*’ ) == 2 ) { $frm_login_msg_array = explode( “*”, $frm_login_msg ); $current_url = home_url( add_query_arg( [], $GLOBALS[‘wp’]->request ) ); //…Continue reading

Increase limit for email actions

add_filter(‘frm_email_control_settings’, function( $options ) { $options[‘limit’] = 200; // Change 200 to your limit return $options; } ); add_filter(‘frm_form_action_limit’, function( $limit ) { return 200; //Change 200 to your limit } );Continue reading

Validate email address

add_filter(‘frm_validate_field_entry’, ‘check_valid_email’, 10, 3); function check_valid_email($errors, $posted_field, $posted_value){ if($posted_field->id == 7762){ //change 7762 to the ID of the email field $postedemail=$_POST[‘item_meta’][7762]; //Change 7762 to the ID of the email field $alloweddomain = explode(‘@’,$postedemail)[1]; if (!filter_var($postedemail, FILTER_VALIDATE_EMAIL) || $alloweddomain != ‘example.com’)…Continue reading

Choose field for entry name

add_filter(‘frm_pre_create_entry’, ‘frm_choose_field_entry_name’); function frm_choose_field_entry_name( $values ) { $target_form_id = 781; // change 781 to your form ID if ( $target_form_id === (int) $values[‘form_id’] ) { $target_field_id = 4529; // change 4529 to the field that you want to use for…Continue reading