/** * 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
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