Set a Custom Email Header (copy)
This snippet sets custom email headers to ensure you can control specific behaviors of your sent…
custom CSS slide-in reposition
html body div#om-{{id}}.Campaign.CampaignType--slide { right: 40px !important; bottom: 100px !important; }
Better PHP Mailer
Replace native Wordpress mail with PHP mail system. Using filter is safer than redeclaring the wp_mail()…
Open external links in new tab
document.addEventListener("DOMContentLoaded", function() { var links = document.querySelectorAll("a[href]"); links.forEach(function(link) { if (link.hostname !== window.location.hostname) { link.setAttribute("target", "_blank");…
Image Type Convert
Covert JPG/ PNG to WebP image, rename new file and delete original image file during the…
Download Archive Menu Item
Displays the download archive link in the "View All" tab of the "Pages" menu items meta…
Disable Renewal Notice for Specific Products
Disables renewal notices for specific products
Download Archive Purchase Buttons
Output purchase button below the full content on download 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); } }…
Add Vendor Ratings / Feedback to Product Page
add_action('woocommerce_before_add_to_cart_form','vendor_feedback_product_page'); function vendor_feedback_product_page() { $vendor_id = get_the_author_meta('ID'); $vendor_shop = urldecode( get_query_var( 'vendor_shop' ) ); if (…
Allow "Mark received" for Digital Product
add_filter( 'wcvendors_pro_mark_order_received_status', '__return_false' );
Add Subscriber to Segment with Duration
Adds the subscriber to the segment for a specific duration, after the defined number of days…