Add AutomateWoo “Delete Custom Field” Actions

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

Yoast Meta Editor

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

Smart Coupons: Admin Voucher References, Notes & Search

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

[DEBUG] Action Scheduler Source Diagnostic

add_action( ‘admin_notices’, ‘rd_report_action_scheduler_source’ ); function rd_report_action_scheduler_source() { if ( ! current_user_can( ‘manage_options’ ) ) { return; } $versions_class = ‘ActionScheduler_Versions’; $system_info_class = ‘ActionScheduler_SystemInformation’; $action_scheduler_class = ‘ActionScheduler’; echo ‘ ‘; if ( ! class_exists( $versions_class ) && ! class_exists( $action_scheduler_class )…Continue reading

3 Dots for popup text in WordPress

/** * Footnote popup — combined CSS + JS + content filter * Uses [[fn]]…[[/fn]] syntax — avoids: * – WordPress shortcode auto-block conversion in Gutenberg ([fn]…[/fn] would trigger it) * – espanso’s {{ }} variable syntax clash ({{fn}}…{{/fn}} would…Continue reading