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:…

Logout URL

This snippet creates a simple logout URL link that you can use as a shortcode.

<10

Insert Template at the Bottom of the Mobile Menu

The following snippet can be used to insert a custom template in the bottom region of…

Set a minimum, and maximum price for products

Set a minimum, and maximum price for products

Custom WooCommerce Status

This is how to create a custom Woocommerce Status while being able to use the "Mark…

Protect Elementor Forms

/** * Protect Elementor Forms */ add_action( 'elementor_pro/forms/validation/email', function( $field, $record, $ajax_handler ) { // validate…

Add Rel Nofollow to Top Bar Social Links

We don't recommend it but if you want to add a nofollow attribute to your top…

Remove Organisation Field

Remove "organisation" from the profile form.

1 … 62 63 64 65 66 … 242