WordPress action hook
wpdesk_rating_petition_postpone
Fired by 10 WordPress plugins, running on 114K+ sites between them.
“Action fired after postponing rating petition popup.”
How to use wpdesk_rating_petition_postpone
It's an action: your callback runs at that point and receives 1 argument. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'wpdesk_rating_petition_postpone', function( $plugin_slug ) {
// Your code runs here.
}, 10, 1 );Argument names come from Weight Based Shipping Table Rate for WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
10 plugins that fire wpdesk_rating_petition_postpone
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Weight Based Shipping Table Rate for WooCommerce100,000+ installs
do_action( 'wpdesk_rating_petition_postpone', $this->plugin_slug )vendor_prefixed/wpdesk/wp-wpdesk-rating-petition/src/PopupPetition/PopupPetitionAjax.php:98 -
Shipping Live Rates and Access Points for UPS for WooCommerce7,000+ installs
do_action( 'wpdesk_rating_petition_postpone', $this->plugin_slug )vendor_prefixed/wpdesk/wp-wpdesk-rating-petition/src/PopupPetition/PopupPetitionAjax.php:98 -
Shipping Live Rates for USPS for WooCommerce3,000+ installs
do_action( 'wpdesk_rating_petition_postpone', $this->plugin_slug )vendor_prefixed/wpdesk/wp-wpdesk-rating-petition/src/PopupPetition/PopupPetitionAjax.php:98 -
Shipping Live Rates for FedEx for WooCommerce2,000+ installs
do_action( 'wpdesk_rating_petition_postpone', $this->plugin_slug )vendor_prefixed/wpdesk/wp-wpdesk-rating-petition/src/PopupPetition/PopupPetitionAjax.php:98 -
Shipping Live Rates for DHL Express for WooCommerce600+ installs
do_action( 'wpdesk_rating_petition_postpone', $this->plugin_slug )vendor_prefixed/wpdesk/wp-wpdesk-rating-petition/src/PopupPetition/PopupPetitionAjax.php:98 -
Shipping Live rates for Australia Post for WooCommerce400+ installs
do_action( 'wpdesk_rating_petition_postpone', $this->plugin_slug )vendor_prefixed/wpdesk/wp-wpdesk-rating-petition/src/PopupPetition/PopupPetitionAjax.php:98 -
Shipping Live rates for Canada Post for WooCommerce400+ installs
do_action( 'wpdesk_rating_petition_postpone', $this->plugin_slug )vendor_prefixed/wpdesk/wp-wpdesk-rating-petition/src/PopupPetition/PopupPetitionAjax.php:98 -
Shipping Live Rates for Royal Mail for WooCommerce400+ installs
do_action( 'wpdesk_rating_petition_postpone', $this->plugin_slug )vendor_prefixed/wpdesk/wp-wpdesk-rating-petition/src/PopupPetition/PopupPetitionAjax.php:98 -
Shipping Notices and No shipping options found info for WooCommerce300+ installs
do_action( 'wpdesk_rating_petition_postpone', $this->plugin_slug )vendor_prefixed/wpdesk/wp-wpdesk-rating-petition/src/PopupPetition/PopupPetitionAjax.php:98 -
Shipping Cost on Product Page Calculator for WooCommerce300+ installs
do_action( 'wpdesk_rating_petition_postpone', $this->plugin_slug )vendor_prefixed/wpdesk/wp-wpdesk-rating-petition/src/PopupPetition/PopupPetitionAjax.php:98
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.