Hide delete button for everyone
add_filter( ‘frm_show_delete_all’, ‘__return_false’ );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘frm_show_delete_all’, ‘__return_false’ );Continue reading
add_filter( ‘frm_show_delete_all’, ‘frm_maybe_hide_button’ ); function frm_maybe_hide_button( $show ) { $show = current_user_can(‘administrator’); return $show; }Continue reading
add_filter( ‘frm_where_filter’, ‘frm_custom_or_filter’, 10, 2 ); function frm_custom_or_filter( $where, $args ) { $view_id = 118;// Replace with your View ID $field = 165;// Replace with ID of your field $search_val_1 = ‘toy‘;// Replace with the first value $search_val_2 = ‘book‘;//…Continue reading
add_filter( ‘frm_sanitize_shortcodes’, ‘__return_false’ );Continue reading
add_filter( ‘frm_sanitize_shortcodes’, ‘maybe_allow_user_shortcodes’, 10, 2 ); function maybe_allow_user_shortcodes( $sanitize, $atts ) { if ( strpos( $atts[‘value’], ‘[gallery’ ) !== false ) { $sanitize = false; } return $sanitize; }Continue reading
add_filter( ‘frm_before_display_content’, ‘FrmViewsDisplaysController::prepend_pagination’, 10, 4 );Continue reading
add_filter( ‘frm_filtered_lookup_options’, ‘change_lookup_options’, 10, 2 ); function change_lookup_options( $options, $args ) { if ( $args[‘field’]->id == 25 ) { // change 25 to the id of the field in the other form foreach ( $options as $k => $option )…Continue reading
add_filter( ‘wc_fp_addons_format_cart_item_price’, ‘remove_variation_price’ ); function remove_variation_price( $value ) { $formatted = ”; return $formatted; }Continue reading
add_filter(‘frm_google_chart’, ‘frm_pie_chart_styling’, 10, 2); function frm_pie_chart_styling($options, $atts){ if ( $atts[‘type’] == ‘pie’ ) { $options[‘pieSliceTextStyle’] = array(‘color’ => ‘red’); } return $options; }Continue reading
add_action( ‘frm_form_classes’, ‘frm_form_classes’ ); function frm_form_classes( $form ) { echo ‘new_class’; }Continue reading