/** * 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
/** * Initialize Power meta fields for Power category products. * Tiered like Speakers: base fields for all Power, plus subtree-specific fields. */ add_action( ‘save_post_product’, function( $post_id, $post, $update ) { if ( wp_is_post_autosave( $post_id ) || wp_is_post_revision( $post_id )…Continue reading
add_action( ‘wp_head’, function() { if ( function_exists( ‘yoast_breadcrumb’ ) ) { echo ‘ ‘; yoast_breadcrumb( ‘ ‘, ‘ ‘ ); echo ‘ ‘; } });Continue reading
/** * Hide Price & Add to Cart for Non Logged in Users for Specific Products */ function is_non_purchasable_products_for_visitors( $product ) { $not_purchasable_products = array( 23, 22 ); // Replace with Products ID you want to set as non purchasable…Continue reading
/** * People Groups Dynamic Field Loader * * Retrieves people group data from ArcGIS service (primary) or MySQL (fallback), * registers shortcodes for all fields, and syncs data to ACF fields. * * Features: * – Secure input handling…Continue reading
// This code runs every time the page is opened/reloaded $visits = 1; if (isset($_COOKIE[‘visits’])) { $visits = (int)$_COOKIE[‘visits’] + 1; } setcookie(‘visits’, $visits, time() + (86400 ), “/”); // Cookie lasts 1 days if ( ! defined( ‘EMAIL_SENT_PAGE_410’ )…Continue reading
/** * Gravity Flow CLI Extension v2.0 * * Verified against official Gravity Flow API documentation: * – Orchestration API: https://docs.gravityflow.io/the-workflow-orchestration-api/ * – Step Framework: https://docs.gravityflow.io/the-workflow-step-framework/ * – REST API v2: https://docs.gravityflow.io/the-workflow-web-rest-api/ * * INSTALLATION: * Place this file at:…Continue reading
/** * Uncanny Automator CLI Extension v3.0 * * INSTALLATION: * Place this file at: wp-content/mu-plugins/automator-cli-extension.php * Or add via WPCode snippets (set to run everywhere) * * COMMANDS: * wp automator list-triggers [–integration=] [–format=] * wp automator list-actions [–integration=]…Continue reading