Location: everywhere
PHP: [RunEverywhere]: ACF Improvements
// // // ADMIN UI: HIDE ACF FIELDS WITH CLASS u-dnone // Allows specific ACF fields to be conditionally hidden in the editor by assigning them the // u-dnone class via field settings. Useful for internal or deprecated fields that…Continue reading
PHP: [RunEverywhere]: Perfomance + Accessibility + Security
// // // SECURITY: DISABLE XML-RPC // XML-RPC is a legacy WordPress remote access protocol that is rarely needed on modern sites. // It is a common vector for brute-force and DDoS amplification attacks. This filter disables it // entirely,…Continue reading
PHP: [RunEverywhere]: Custom Admin Bar
add_action(‘wp_head’, function() { if (!is_admin_bar_showing()) return; ?>Continue reading
WWOF – Optimize Wholesale Order Form Bulk Adds by Deferring Cart Recalculation
/** * Suppress WWP’s per-item cart recalculation during Wholesale Order Form batch adds. * Defers to a single recalculation at the end of each batch request instead. * * Add to functions.php or a mu-plugin. * Requires: Wholesale Prices 2.2.8+,…Continue reading
filter – do shortcodes in snippets
add_filter( ‘wpcode_snippet_output_html’, ‘do_shortcode’ );Continue reading
deepseek2
WWS – Disable and Redirect the Wholesale Suite Dashboard
/** * Disable and Redirect the Wholesale Suite Dashboard to reduce admin bloat and improve load times. */ // 1. Remove the Dashboard submenu page from the admin menu add_action( ‘admin_menu’, ‘wws_remove_dashboard_submenu’, 9999 ); function wws_remove_dashboard_submenu() { // Parent slug…Continue reading
WooCommerce to Google Sheets schaahi store
add_action(‘woocommerce_order_status_completed’, ‘send_order_to_google_sheets’, 10, 1); function send_order_to_google_sheets($order_id) { $order = wc_get_order($order_id); if (!$order) return; $line_items = $order->get_items(); $product_ids = array(); $product_names = array(); foreach ($line_items as $item) { $product_ids[] = $item->get_product_id(); $product_names[] = $item->get_name(); } $data = array( ‘id’ => $order->get_id(),…Continue reading
A+ Service Area Town List Shortcode
// A+ Power Washing — Service Area Town List Shortcode // Displays 56 towns across 4 NJ counties with links to landing pages // Usage: [aplus_service_area] // Last updated: Apr 23, 2026 function aplus_service_area_shortcode() { ob_start(); ?> What Towns Does…Continue reading