Auto Generate Virtual Coupon After a Customer Completed an Order
/** * Generate a virtual coupon when order is completed. * * @param int $order_id Order…
Let Customers Select Their User Role From A Custom Field In Wholesale Lead Capture
Create a custom field with the user role selection, make sure that the values match your…
Use Billing Address in Order Exports
By default the export order feature for the vendor dashboard users the customers shipping address. This…
Use Full Store Address in Ships From
By default the Ships From metadata displayed under the add to cart button only shows the…
Remove Post Title from Yoast Breadcrumbs
This snippet removes the post title from Yoast SEO breadcrumbs
Remove Post Title from Yoast Breadcrumb
/* Remove Post Title from Yoast Breadcrumb */ add_filter('wpseo_breadcrumb_single_link', 'remove_breadcrumb_title' ); function remove_breadcrumb_title( $link_output) { if(strpos(…
MemberPress: Auto Expand Coupon Field
Removes the “Have a coupon?” link and instead defaults to showing the coupon input field.
MemberPress: Hide Protected Posts on Archive Page
Hides posts that the current user (or guest) does not have access to from archive pages.
Auto Vote 5 sao cho bài viết mới
function auto_vote_5_stars_on_publish($ID, $post) { if ($post->post_status === 'publish') { if (function_exists('kk_star_ratings_insert')) { kk_star_ratings_insert("5", $ID); } }…
MemberPress: Require Coupon at Checkout
Make the coupon field required at checkout.
MemberPress: Require Specific Coupon to Register
The code will make a specific coupon mandatory for purchasing a specific membership. More than one…