Prevent Line Break
add_filter(‘frm_logs_csv_line_break’, ‘prevent_log_csv_line_break’); function prevent_log_csv_line_break(){ return ‘<br />’; //change this to what you want to use in place of line breaks }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter(‘frm_logs_csv_line_break’, ‘prevent_log_csv_line_break’); function prevent_log_csv_line_break(){ return ‘<br />’; //change this to what you want to use in place of line breaks }Continue reading
add_action(‘frm_log_csv_headers’, ‘change_log_bom_csv’); function change_log_bom_csv() { echo chr(239) . chr(187) . chr(191); }Continue reading
add_filter( ‘frm_should_import_files’, ‘__return_true’ );Continue reading
add_filter( ‘frm_pdfs_export_content’, ‘add_extra_content’, 10, 2); function add_extra_content( $content, $args ) { $entry_id = ‘<p>Entry ID: #’ . $args[‘entry’]->id . ‘</p>’; return $entry_id . $content; }Continue reading
add_filter(‘frm_pdfs_export_file_name’, ‘prepend_site_name’ , 10, 2); function prepend_site_name( $file_name, $args ) { $file_name = sanitize_title( get_bloginfo( ‘name’ ) ) . ‘-‘ . $file_name; return $file_name; }Continue reading
add_filter(‘frm_pdfs_css’, ‘modify_pdfs_css’ , 10, 2); function modify_pdfs_css( $css, $args ) { // Modify the CSS here. return $css; }Continue reading
add_filter(‘frm_pdfs_default_shortcode_atts’, ‘filter_default_atts’); function filter_default_atts( $atts ) { $atts[‘rel’] = ‘nofollow’; // Default is rel=”nofollow”. return $atts; } add_filter(‘frm_pdfs_shortcode_output’, ‘filter_output_shortcode’, 10, 2); function filter_output_shortcode( $output, $atts ) { if ( ! empty( $atts[‘label’] ) ) { $output = str_replace( ‘<a’, ‘<a…Continue reading
add_filter(‘frm_pdfs_default_shortcode_atts’, ‘filter_default_atts’); function filter_default_atts( $atts ) { $atts[‘rel’] = ‘nofollow’; // Default is rel=”nofollow”. return $atts; } add_filter(‘frm_pdfs_shortcode_output’, ‘filter_output_shortcode’, 10, 2); function filter_output_shortcode( $output, $atts ) { if ( ! empty( $atts[‘label’] ) ) { $output = str_replace( ‘<a’, ‘<a…Continue reading
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