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
Disable Donations After Goal Is Reached
Disables donations to campaigns after they have reached their goal.
WPForms: new smart tag - Current Date/Time
It's a localized date/time in this format: Y-m-d H:i:s
WPCode Snippet: MU-Plugins Sync Engine
/** * WPCode Snippet: MU-Plugins Sync Engine * Description: Synchronizes MU-Plugins FROM /wp-content/mu-plugins/ TO wpcode_snippets_sync CPT…
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…
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…
Media Library Infinite Scrolling
Infinite Scroll
Remove Google Font
Remove Google Font