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…
Add Custom Taxonomy - Single Vendor Taxonomy
It'll only allow the vendor to select one custom taxonomy term at a time
Add Custom Taxonomy - Multiple Vendor Taxonomy
Allows the vendor to select multiple taxonomies
Add Custom Taxonomy to Woocommerce Single Product Page
add_action( 'woocommerce_product_meta_end', 'wcv_add_brands_single_product' ); function wcv_add_brands_single_product() { global $product; $taxonomy = 'wcv_brands'; // The custom taxonomy…