Add custom param to download URL
add_filter(‘frm_pdfs_download_url’, ‘add_custom_param’, 10, 2); function add_custom_param( $url, $args ) { $url = add_query_arg( ‘key’, ‘value’, $url ); return $url; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter(‘frm_pdfs_download_url’, ‘add_custom_param’, 10, 2); function add_custom_param( $url, $args ) { $url = add_query_arg( ‘key’, ‘value’, $url ); return $url; }Continue reading
add_filter( ‘frm_new_form_values’, ‘enable_file_protection_by_default’ ); function enable_file_protection_by_default( $values) { $values[‘options’][‘protect_files’] = 1; return $values; }Continue reading
add_filter( ‘frm_export_csv_column_sep’, ‘separate_csv_column_semicolon’); function separate_csv_column_semicolon( $column_separator ) { return ‘;’; }Continue reading
add_action( ‘frm_export_view_options_saved’, ‘after_export_view_options_saved’ ); function after_export_view_options_saved( $settings ) { // Do something after export view options have been saved. }Continue reading
add_filter(‘frm_logs_cron_remains’, ‘logs_cron_remains_extend’); function logs_cron_remains_extend() { return ‘-1 month’; }Continue reading
/** * @param array $options * @param array $field */ function add_custom_autocomplete_option_for_field( $options, $field ) { $target_field_id = 13; // change 13 to your text field ID if ( $target_field_id !== (int) $field[‘id’] ) { return $options; } $options[‘cc-name’] =…Continue reading
add_filter( ‘frm_dynamic_field_include_drafts’, ‘dynamic_include_draft_entries’ ); function dynamic_include_draft_entries( $include ) { return ‘drafts_only’; // Or return FrmProDynamicFieldsController::DRAFTS_ONLY; }Continue reading
add_filter(‘frm_csv_column_sep’, ‘frm_csv_column_sep’); function frm_csv_column_sep($separator){ return ‘;’; }Continue reading
add_filter( ‘frm_dynamic_field_include_drafts’, ‘dynamic_include_entries’ ); function dynamic_include_entries( $include ) { return ‘include’; // Or return FrmProDynamicFieldsController::INCLUDE_DRAFTS; }Continue reading
add_filter( ‘frm_graph_data’, ‘frm_percentage_graph’, 10, 2 ); function frm_percentage_graph( $data, $atts ) { if ( isset( $atts[‘title’] ) && $atts[‘title’] == ‘Gas by Percentage’ ) { $data[0][1] = “Percentage of gas used”; $total = FrmProStatisticsController::stats_shortcode( array( ‘id’ => 4124, ‘type’ =>…Continue reading