Disable WooCommerce widgets on vendor store pages
/** * Remove widgets from the vendor store and single product pages conditionally. * * You…
MemberPress: Return to Same Page After Signup
Return the user to the same page after they register.
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…
Logout URL
This snippet creates a simple logout URL link that you can use as a shortcode.
aa
add_action('admin_notices', function () { if (!current_user_can('manage_options')) { return; } echo 'WPCode test is working.'; echo 'Application…
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…
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 "p" tags Contact Form 7
Remove tags from the forms in the frontend
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,…