Change Default Time
add_filter( ‘frm_autoresponder_time’, ‘change_default_autoresponder_time’, 10, 2 ); function change_default_autoresponder_time( $time, $args ) { $time = ’10:00:00′; return $time; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘frm_autoresponder_time’, ‘change_default_autoresponder_time’, 10, 2 ); function change_default_autoresponder_time( $time, $args ) { $time = ’10:00:00′; return $time; }Continue reading
add_filter( ‘frm_authnet_invoice_num’, ‘set_custom_auth_invoice_num’, 10, 2 ); function set_custom_auth_invoice_num( $invoice_number, $args ) { $field_id = 520; $field = FrmField::getOne( $field_id ); $entry_meta = FrmEntryMeta::get_entry_metas_for_field( $field_id ); if ( $field->form_id == ’45’ ) { $invoice_number = $entry_meta[0]; } return $invoice_number; }Continue reading
add_filter( ‘frm_autoresponder_time’, ‘change_default_autoresponder_time’, 10, 2 ); function change_default_autoresponder_time( $time, $args ) { $time_field_id = 25; //replace 25 with the ID of your Time field $form_action_id = 250; //replace 250 with your form Action ID if ( $args[‘action’]->ID == $form_action_id &&…Continue reading
add_action(‘frm_after_create_entry’, ‘frm_break_post_content_connection’, 60, 2); function frm_break_post_content_connection( $entry_id, $form_id ) { if ( $form_id == 156 ) {// Replace 156 with the ID of your form $entry = FrmEntry::getOne( $entry_id ); if ( ! $entry->post_id ) { return; } delete_post_meta( $entry->post_id,…Continue reading
add_filter( ‘frm_no_entries_message’, ‘remove_no_entries_message’, 10, 2); function remove_no_entries_message( $message, $args ) { $host = $_SERVER[‘REQUEST_URI’]; if ( $args[‘display’]->ID == 1378 ) { if ($host == “/your-relative-url/?status=pending”) { $message = ‘You have no pending entries.’; } elseif ($host == “/your-relative-url/?status=incomplete”) { $message…Continue reading
add_filter(‘frm_success_filter’, ‘change_my_confirmation_method’, 10, 2); function change_my_confirmation_method( $type, $form ) { if ( $form->id == 5 && isset( $_POST ) && isset( $_POST[‘frm_action’] ) && $_POST[‘frm_action’] == ‘update’ ) { //change 5 to the ID of your form $type = ‘message’;…Continue reading
add_filter( ‘frm_csv_columns’, ‘export_specific_cols’, 10, 2 ); function export_specific_cols( $headings, $form_id ) { if ( $form_id == 19 ) { $export_columns = array( 363, 425, 579, ‘id’ ); foreach ( $headings as $col_key => $data ) { if ( ! in_array(…Continue reading
add_filter(‘frm_csv_filename’, ‘change_csv_filename’, 10, 2); function change_csv_filename($filename, $form){ if ($form->id == 45){//Change 45 to the ID of your form $filename = date(“ymdHis”,time()) . ‘_’ . sanitize_title_with_dashes($form->name) . ‘_formidable_entries.csv’;//Change the filename here } return $filename; }Continue reading
add_filter(‘frm_csv_where’, ‘limit_csv_by_date’, 10, 2); function limit_csv_by_date($where, $args){ if ( $args[‘form_id’] == 19 ) {// Change 19 to the ID of your form $where[‘form_id’] = 19;// Change 19 to the ID of your form $where[‘created_at >’] = ‘2015-01-01 00:00:00’; $where[‘created_at <‘]…Continue reading
add_filter(‘frm_csv_where’, ‘limit_csv_to_current_user’, 10, 2); function limit_csv_to_current_user($where, $args){ if ( $args[‘form_id’] == 19 ) {// Change 19 to the ID of your form $current_user = wp_get_current_user(); $where[‘form_id’] = 19;// Change 19 to the ID of your form again $where[‘user_id’] = $current_user->ID;…Continue reading