Disable spam validation for this hook
add_filter( ‘frm_filename_spam_keywords’, ‘__return_false’ );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘frm_filename_spam_keywords’, ‘__return_false’ );Continue reading
add_filter( ‘frm_google_chart’, ‘my_custom_function’ ); function my_custom_function( $options ) { $options[‘trendlines’] = array( 0 => array() ); return $options; }Continue reading
add_action( ‘woocommerce_new_order_item’, ‘add_order_id_to_entry’, 10, 3 ); function add_order_id_to_entry( $item_id, $cart_item, $order_id ) { // check if there’s form data to process if ( empty( $cart_item->legacy_values[‘_formidable_form_data’] ) ) { return; } // get form entry $entry = FrmEntry::getOne( $cart_item->legacy_values[‘_formidable_form_data’] ); if…Continue reading
add_action( ‘frm_after_create_entry’, ‘my_custom_function’, 30, 2 ); function my_custom_function( $entry_id, $form_id ){ $entry = FrmEntry::getOne( $entry_id ); // Get the created_at date in a UNIX timestamp $timestamp = strtotime( $entry->created_at ); }Continue reading
add_action( ‘frm_after_create_entry’, ‘frm_save_api_response_for_repeater’, 10, 2 ); function frm_save_api_response_for_repeater( $entry_id, $form_id ) { $target_child_form_id = 99; // change 99 to the ID of the child form if ( $target_child_form_id == $form_id ) { $repeater_field_id = 123; // change 123 to the…Continue reading
add_filter( ‘frm_currencies’, ‘my_custom_function’ ); function my_custom_function( $currencies ) { $currencies[‘EUR’][‘symbol_left’] = $currencies[‘EUR’][‘symbol_right’]; $currencies[‘EUR’][‘symbol_right’] = ”; return $currencies; }Continue reading
add_filter(‘frm_google_chart’, ‘frm_pie_chart_tooltip’, 10, 2); function frm_pie_chart_tooltip($options, $atts){ if ( $atts[‘type’] == ‘pie’ ) { $options[‘tooltip’] = array(‘trigger’ => ‘none’); } return $options; }Continue reading
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
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
add_filter( ‘frm_mlcmp_tags’, ‘add_new_tag’ ); function add_new_tag( $tags, $data ) { if ( $data[‘subscriber_id’] === ‘123’ ) { $tags[] = array( ‘name’ => ‘New tag’, ‘status’ => ‘active’, ); } return $tags; }Continue reading