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:…
Remove Google Font
Remove Google Font
Remove Organisation Field
Remove "organisation" from the profile form.
Remove Last Name at Checkout
Removes the Last Name field from the checkout page. Note: This worked with checkout shortcode only
Event Data | Display Eventbrite Events
Please note that this guide is intended for advanced users and developers. Our plugin already offers…
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
MemberPress: ACF - Exclude Protected Posts From ACF Repeater Field
The code snippet ensures that protected MemberPress posts are excluded from custom queries used in Advanced…
Limit user posts
A settings page to set the number of posts all users can create
Custom Countries
Illustrates how to add a custom list of countries This list will be used anywhere EDD…