AovUp Rate & Gateway Rules for WooCommerce icon
eCommerce & WooCommerce

AovUp Rate & Gateway Rules for WooCommerce hooks reference

  • By Woosuite
  • v1.0.2
  • Updated

AovUp Rate & Gateway Rules for WooCommerce 1.0.2 has 2 actions and 7 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when AovUp Rate & Gateway Rules for WooCommerce fires an action
add_action( 'aovup_spr_editor_assets', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value AovUp Rate & Gateway Rules for WooCommerce is about to use
add_filter( 'aovup_spr_actions', function( $actions ) {
	// Change $actions here.
	return $actions;
}, 10, 1 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • includes/class-aovup-spr-rules.php line 204
    /**
     * Filters the rule actions (Pro adds "fee").
     */
    apply_filters( 'aovup_spr_actions', $actions );
  • includes/class-aovup-spr-conditions.php line 301
    /**
     * Filters a money amount from a rule before it is compared with the cart or
     * charged: convert it from the store's base currency to the currency the
     * customer pays in. Convert it in proportion (amount x rate): the per-unit
     * part of a table-rate subtotal band is converted with the same rate, read as
     * the conversion of 1000.
     */
    apply_filters( 'aovup_spr_amount', (float) $amount, $what, '' !== $currency ? $currency : get_woocommerce_currency() );
  • includes/class-aovup-spr-context.php line 363
    /**
     * Filters what the shipping rate cache key is built from (Pro adds the answers
     * of date and time conditions).
     */
    apply_filters( 'aovup_spr_cache_key_parts', $parts, $this );
  • includes/class-aovup-spr-conditions.php line 171
    /**
     * Filters the condition types (Pro adds postcode, coupon, schedule and
     * customer history).
     */
    apply_filters( 'aovup_spr_condition_types', $types );
  • includes/class-aovup-spr-context.php line 302
    /**
     * Filters whether the customer counts as tax exempt for the rules.
     */
    apply_filters( 'aovup_spr_customer_tax_exempt', $exempt, $this->user_id );
  • includes/class-aovup-spr-admin.php line 89
    /**
     * Fires after the editor script is enqueued (Pro adds its editor parts).
     */
    do_action( 'aovup_spr_editor_assets' );
  • includes/class-aovup-spr-admin.php line 256
    /**
     * Fires above the rules table (Pro adds import/export).
     */
    do_action( 'aovup_spr_list_top' );
  • includes/class-aovup-spr-context.php line 130
    /**
     * Filters whether shipping rules judge this package on its own items (its
     * contents, subtotal, item count and weight) instead of the whole cart's. Off
     * by default, so a condition such as "Cart subtotal is at least 100" means the
     * same in shipping and payment rules. Turn it on for stores that split the
     * cart into packages (several addresses, vendors or warehouses) and want each
     * package judged on what ...
     */
    apply_filters( 'aovup_spr_shipping_rules_use_package', false, $package );
  • includes/class-aovup-spr-conditions.php line 387
    /**
     * Filters the roles counted as wholesale customers.
     */
    apply_filters( 'aovup_spr_wholesale_roles', $roles );

Generated from AovUp Rate & Gateway Rules for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Done for you

Rather have it built for you?

Tell us what should change and we’ll write and test the code using these hooks.

Plugin customisation

from $149

New features or changed behaviour, without editing the plugin’s files.

  • Built as a companion plugin, so updates never wipe it
  • Exact quote before we start
  • Tested on staging, then deployed

Typical turnaround: 3–7 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Can't find the right hook?

We can build the customisation for you. Describe what you need: