function pm_hide_customer_profile_notes_on_add_user( $match, $rule, $screen, $field_group ) { if ( ! $match || ‘user_form’ !== $rule[‘param’] || empty( $screen[‘user_form’] ) || ‘add’ !== $screen[‘user_form’] || ! function_exists( ‘acf_get_field’ ) ) { return $match; } static $customer_profile_notes_parent = null; if (…Continue reading
function rd_aw_register_delete_custom_field_actions() { if ( ! class_exists( ‘\AutomateWoo\Action’ ) ) { return; } if ( ! class_exists( ‘RD_AW_Action_Delete_Custom_Field_Base’, false ) ) { abstract class RD_AW_Action_Delete_Custom_Field_Base extends \AutomateWoo\Action { public function load_fields() { $meta_key = ( new \AutomateWoo\Fields\Text() ) ->set_name( ‘meta_key’…Continue reading
if ( ! defined( ‘ABSPATH’ ) ) { return; } if ( ! class_exists( ‘WooCommerce’ ) ) { return; } if ( ! function_exists( ‘wcs_get_subscription’ ) ) { return; } function pm_exclude_blacklist_suspect_meta_from_subscription_data( $data ) { if ( ! is_array( $data…Continue reading
function rd_refund_button_has_transaction_id( $order ) { return $order instanceof WC_Order && ” !== trim( (string) $order->get_transaction_id() ); } function rd_refund_button_should_be_hidden( $order ) { return $order instanceof WC_Order && ! rd_refund_button_has_transaction_id( $order ) && $order->has_status( array( ‘new’, ‘auto-draft’, ‘draft’, ‘checkout-draft’, ‘pending’, ‘failed’,…Continue reading
add_action(‘wp_body_open’, function() { echo ‘ ‘; }); add_action(‘wp_head’, function() { echo ‘ ‘; }); add_action(‘wp_footer’, function() { echo ‘‘; });Continue reading
/** * A+ Lighting — Expose Yoast SEO fields to the WordPress REST API * * WPCode snippet. Site: apluslighting.net * Created: August 14, 2026 * * WHY: Yoast stores the SEO title and meta description as PROTECTED post meta…Continue reading
function rd_add_generated_gift_coupon_order_note( $generated_coupon ) { if ( ! is_array( $generated_coupon ) || empty( $generated_coupon[‘new_coupon_id’] ) ) { return; } $coupon = new WC_Coupon( absint( $generated_coupon[‘new_coupon_id’] ) ); if ( ! $coupon->get_id() ) { return; } $order_id = absint( $coupon->get_meta( ‘generated_from_order_id’,…Continue reading
function rd_hide_yoohw_split_order_button() { if ( ! class_exists( ‘WooCommerce_Order_Splitter_Edit_Order_Split_Button’ ) ) { return; } $screen = get_current_screen(); if ( ! $screen ) { return; } $is_legacy_order_edit = ‘shop_order’ === $screen->id; $is_hpos_order_edit = ( function_exists( ‘wc_get_page_screen_id’ ) && wc_get_page_screen_id( ‘shop-order’ ) ===…Continue reading