Disable remote image processing
add_filter(‘frm_pdfs_dompdf_args’, ‘disable_remote_image_processing’ ); function disable_remote_image_processing( $args ) { $args[‘enable_remote’] = false; return $args; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter(‘frm_pdfs_dompdf_args’, ‘disable_remote_image_processing’ ); function disable_remote_image_processing( $args ) { $args[‘enable_remote’] = false; return $args; }Continue reading
add_filter(‘frm_pdfs_dompdf_args’, ‘fix_images_unsafe_https’ ); function fix_images_unsafe_https( $args ) { if ( ! isset( $args[‘http_context’] ) ) { $args[‘http_context’] = array(); } if ( ! isset( $args[‘http_context’][‘ssl’] ) ) { $args[‘http_context’][‘ssl’] = array(); } $args[‘http_context’][‘ssl’][‘verify_peer’] = false; return $args; }Continue reading
add_filter(‘frm_pdfs_access_code_expired_time’, ‘change_expired_time’); function change_expired_time() { return WEEK_IN_SECONDS; }Continue reading
add_filter(‘frm_surveys_likert_responsive_breakpoint’, ‘change_likert_responsive_breakpoint’, 10, 2); function change_likert_responsive_breakpoint( $min_width, $args ) { $field_id = is_object( $args[‘field’] ) ? $args[‘field’]->id : $args[‘field’][‘id’]; if ( 728 == $field_id ) { // Change 728 to the Likert field ID. Remove this check if you want…Continue reading
add_action(‘frm_after_destroy_entry’, ‘my_custom_function’, 10, 2); function my_custom_function( $entry_id, $entry ) { $target_form_id = 29; // change 29 to your form ID. if ( $target_form_id !== (int) $entry->form_id ) { return; } // Handle deleted entry for target form. }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