WP Simple Pay: Conditionally Dequeue Scripts & Styles

Conditionally dequeue scripts & styles based on set conditions. In this example, we remove all plugin…

Remove Gutenberg Blocks CSS

add_action( 'wp_enqueue_scripts', function () { wp_dequeue_style( 'wp-block-library' ); wp_dequeue_style( 'wp-block-library-theme' ); // Remove WooCommerce block CSS…

Remove "p" tags Contact Form 7

Remove tags from the forms in the frontend

WordPress Post Views Counter Function

function wpb_set_post_views($postID) { $count_key = 'wpb_post_views_count'; $count = get_post_meta($postID, $count_key, true); if($count==''){ $count = 0; delete_post_meta($postID,…

CSS For Craft Picker

/* General Styles */ body { margin: 0; font-family: 'Arial', sans-serif; background-color: #f9f9f9; color: #333; line-height:…

Number slider validation for single page forms

This snippet uses the wpforms_process_validate_number-slider action to check the slider value after submission.

<10

Change Admin Panel Footer Text

Display custom text in the admin panel footer with this snippet.

Note Orders

add_filter( 'manage_edit-shop_order_columns', 'custom_shop_order_column', 90 ); function custom_shop_order_column( $columns ) { $ordered_columns = array(); foreach( $columns as…

Untitled Snippet

document.addEventListener("click", (e) => { const pill = e.target.closest(".rs-pill"); if (!pill) return; const row = pill.parentElement; row.querySelectorAll(".rs-pill").forEach(p…

FES Registration Form Redirect

Set custom redirect URLs for those who just registered to become vendors.

Convert Uploaded Images to WebP Format Automatically

Automatically convert uploaded images to WebP format.

1 63 64 65 66 67 224