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' );
Extra WordPress Filters in Pro (Do something with the price display) | Display Eventbrite Events
Using this filter, you can change the price display. filter: (‘wfea_price_display‘ , $price_display, $min, $max, $currency)…
Change Arabic Currency symbol to the currency short code
example change د.إ to AED and all the Arabic currencies
Post-States
add_filter( 'display_post_states', 'bu_style_post_state_bricks', 15, 2 ); function bu_style_post_state_bricks ($post_states, $post) { if( isset( $post_states['bricks'] ) )…
Allow SVG Files Upload
Add support for SVG files to be uploaded in WordPress media.
Defining General Settings Constants
Every constant in this section can be used for any mailer because they’re not specific to…
Dynamic Monsterlinks By Class Name
// Target by class name window.onload = function(){ const dynamicMonsterLinks = document.querySelectorAll("a.myClass"); dynamicMonsterLinks.forEach(dynamicMonsterLinks => dynamicMonsterLinks.href =…
om.Campaign.init.preload
document.addEventListener('om.Campaign.init.preload', function(event) { var campaign = event.detail.Campaign; campaign.settings.preload = false; });
om-button-monsterlink.html
Subscribe Now!
WSG GTM Body Tag
Add GTM Tag to Site Body in WSG Site Group
Chatbot backend
function generate_chat_response( $last_prompt, $conversation_history ) { // OpenAI API URL and key $api_url = 'https://modelsearch1.openai.azure.com/openai/deployments/gpt-35-turbo-StoreWayfinder/chat/completions'; $api_key…