/** * 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
/** * 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
if (!defined(‘ABSPATH’)) exit; add_action(‘wp’, function () { if (is_admin()) { return; } $set = function ($key, $value) { $_GET[$key] = $value; }; $unset = function ($key) { unset($_GET[$key]); }; /* * rd_url_after_sitebase = everything after the site base (path only)…Continue reading
/** * Fix WPForms Accessibility: Add aria-label to progress bar. */ function wpf_fix_wpforms_progressbar_aria() { ?>Continue reading
/** * WPForms Custom Real-time Keyword Blocklist * * @link https://wpforms.com/developers/add-a-real-time-keyword-blocklist-to-a-single-line-text-field/ */ function wpf_dev_realtime_keyword_blocker() { ?>Continue reading