Category Title on Blog Category Archives

/** * Blueprints — dynamic archive title shortcode for Avada Layout H1 * Usage: [bp_archive_title] in the Avada Title element, set to H1. * by DC@CC 19/08/26 */ add_shortcode( ‘bp_archive_title’, function() { if ( is_category() || is_tag() || is_tax() )…Continue reading

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

Improve WooCommerce Admin Order Refund Button Logic

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

Scroll Progress Bar

add_action(‘wp_body_open’, function() { echo ‘ ‘; }); add_action(‘wp_head’, function() { echo ‘ ‘; }); add_action(‘wp_footer’, function() { echo ‘‘; });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