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:…
Book Review
Used to list book review recommendations
Google adsense
To connect to Google AdSense
WPForms: new smart tag - Current Date/Time
It's a localized date/time in this format: Y-m-d H:i:s
Elementor Rest Bridge
if (!defined('ABSPATH')) { exit; } add_action('init', function () { $post_types = array('page', 'post', 'elementor_library'); foreach ($post_types…
Add extra shipping providers for vendor tracking numbers
$shipping_providers = array( 'Australia' => array( 'Australia Post' => 'https://auspost.com.au/mypost/track/#/details/%1$s', 'FedEx' => 'https://www.fedex.com/apps/fedextrack/?tracknumbers=%1$s&cntry_code=au', 'Fastway Couriers' =>…
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…
Media Library Infinite Scrolling
Infinite Scroll
Remove Google Font
Remove Google Font
Change Admin Panel Footer Text
Display custom text in the admin panel footer with this snippet.
Defining SMTP.com Mailer Constants
This snippet will prevent users from changing WP Mail SMTP settings in your WordPress admin area…
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…