Type: php
2026 Chess Registration
Real Estate Website
Dream Career Project — Real Estate Agent Dream Career Project Real Estate Agent A clear plan showing the skills, training, and steps I will take to reach my dream job in real estate. Why I Chose It Hard Skills Training…Continue reading
Language Profile page – Output FCBH/YouVersion links – ACF ROL field – PROD LIBRARY
function fcbh_display_language_link() { global $wpdb; // Get the ACF field ‘rol’ from current post $post_id = get_the_ID(); $rol = get_field(‘rol’, $post_id); $language = get_field(‘lang’, $post_id); if (empty($rol)) { return ‘ No language code (ROL) found for this post. ‘; }…Continue reading
GF turn off * indicates required fields
add_filter( ‘gform_required_legend’, ‘__return_empty_string’ );Continue reading
Variable Pricing Dropdown (copy)
function edd_library_variable_price_dropdown() { function shoestrap_edd_purchase_variable_pricing( $download_id ) { $variable_pricing = edd_has_variable_prices( $download_id ); if ( ! $variable_pricing ) return; $prices = apply_filters( ‘edd_purchase_variable_prices’, edd_get_variable_prices( $download_id ), $download_id ); $type = edd_single_price_option_mode( $download_id ) ? ‘checkbox’ : ‘radio’; do_action( ‘edd_before_price_options’, $download_id…Continue reading
Fix “Send to Friend” Field Visibility for Variable Gift Cards
function themify_fix_agcfw_variable_product_scripts() { // Only run on single product pages if ( ! is_product() ) { return; } // Only run if Themify theme is active if ( ! class_exists( ‘Themify_Enqueue_Assets’ ) ) { return; } // Only run if…Continue reading
Untitled Snippet
function getChatContent() { const chat = document.querySelector(‘.mwai-chatbot .mwai-messages’) || document.querySelector(‘.mwai-chatbot’); return chat ? chat.innerHTML : ”; } function getChatText() { const chat = document.querySelector(‘.mwai-chatbot .mwai-messages’) || document.querySelector(‘.mwai-chatbot’); return chat ? chat.innerText : ”; } function buildPDFHtml(content) { return ` Your…Continue reading
Vimeo Autoplay Unmute (Homepage)
document.addEventListener(“click”, function () { const iframe = document.querySelector(“iframe[src*=’vimeo.com’]”); if (!iframe) return; iframe.contentWindow.postMessage( JSON.stringify({ method: “setVolume”, value: 1 }), “*” ); iframe.contentWindow.postMessage( JSON.stringify({ method: “play” }), “*” ); }, { once: true });Continue reading
Global profile keys (applies to all products)
/** * Initialize cross-cutting profile keys for ALL products. * Safe: only creates meta keys if missing. */ add_action( ‘save_post_product’, function( $post_id, $post, $update ) { if ( wp_is_post_autosave( $post_id ) || wp_is_post_revision( $post_id ) ) return; if ( ‘product’…Continue reading