Opening booking resources editor in new tab

This snippet will open the booking resources editor in a new tab instead of opening it…

Change Method Label

add_filter( 'woocommerce_cart_shipping_method_full_label', 'wcv_override_vendor_shipping_label', 10, 2 ); function wcv_override_vendor_shipping_label( $label, $method ){ $label = 'Flat-rate'; // cost;…

Make All Users Vendors

/** * Make all new user registrations Vendors. */ add_filter( 'woocommerce_new_customer_data', 'wcv_woocommerce_new_user_data' ); function wcv_woocommerce_new_user_data( $data…

Remove WordPress Version Number

add_filter('the_generator', '__return_empty_string');

<10

On Scroll Elementor show/hide element

Note: You need to set the id for the button or element to "#scrolling-button".

JP_Wp_Snippets

All different snippets I have been using

Untitled Snippet

wordpress $ cd wp-content wp-content $ cd plugins plugins $ mkdir plugin-name plugins $ cd plugin-name…

index.php

Index page for STAR

eaglegame

const canvas = document.getElementById('game-canvas'); const ctx = canvas.getContext('2d'); class Character { constructor(name, x, y, width, height,…

1 91 92 93 94 95 125