Display multi-select option values

add_filter( ‘frmpro_fields_replace_shortcodes’, ‘frm_display_option_values_with_pattern’, 10, 4 ); function frm_display_option_values_with_pattern( $replace_with, $tag, $atts, $field ) { if ( isset ( $atts[‘pattern’] ) ) { if( $replace_with ) { $pattern = $atts[‘pattern’]; if( is_array( $replace_with ) ){ foreach($replace_with as $key => $value) {…Continue reading

Access a row on a repeater

add_action( ‘frm_before_destroy_entry’, ‘my_custom_function’,9 ); function my_custom_function( $entry_id ) { $entry = FrmEntry::getOne( $entry_id, true ); if ( $entry->parent_item_id !== ‘0’ ) { // do something for repeating group entries from this form } }Continue reading

Remove one of the default keywords classified as spam

add_filter( ‘frm_filename_spam_keywords’, ‘my_custom_function’ ); function my_custom_function( $spam_keywords ) { $key = array_search( ‘robux’, $spam_keywords ); // Replace the keyword ‘robux’ with the one you need to remove if ( false !== $key ) { unset( $spam_keywords[ $key ] ); }…Continue reading

Flag the submission of a form as honeypot spam

add_filter( ‘frm_process_honeypot’, ‘my_custom_function’, 10, 2 ); function my_custom_function( $is_honeypot_spam, $atts ) { if ( $atts[‘form’]->id === ‘5’ ) { //change 5 to the ID of your form if ( $is_honeypot_spam ) { // handle honeypot spam. } } return $is_honeypot_spam;…Continue reading

Allow content in between search words

add_filter( ‘frm_where_filter’, ‘frm_flexible_filter’, 10, 2 ); function frm_flexible_filter( $where, $args ) { $view_id = 186;// Replace with your View ID $field = 644;// Replace with ID of your field if ( $args[‘display’]->ID == $view_id && $args[‘where_opt’] == $field ) {…Continue reading

Extend times to check before today

add_filter( ‘frm_form_token_check_before_today’, ‘my_custom_function’ ); function my_custom_function( $times ) { array_push( $times, 3 * DAY_IN_SECONDS ); // Three days ago. return $times; }Continue reading