woocommerce_helper_subscription_deactivate_success

woocommerce_helper_subscription_deactivate_success

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

do_action('woocommerce_helper_subscription_deactivate_success') is found 2 times:

  • /includes/admin/helper/class-wc-helper.php line 1172
    1168
    1169
    1170
    1171
    1172
    1173
    1174
    1175
    1176
    1177
    1178
         * @param int    $product_id Product ID being deactivated.
         * @param string $product_key Subscription product key.
         * @param array  $deactivation_response The response object from wp_safe_remote_request().
         */
        do_action( 'woocommerce_helper_subscription_deactivate_success', $product_id, $product_key, $deactivation_response );
    } else {
        self::log( sprintf( 'Deactivate API call returned a non-200 response code (%d)', $code ) );
     
        /**
         * Fires when the Helper fails to activate a product.
         *
  • /includes/admin/helper/class-wc-helper.php line 2153
    2149
    2150
    2151
    2152
    2153
    2154
    2155
    2156
    2157
    2158
    2159
         * @param int    $product_id Product ID being deactivated.
         * @param string $product_key Subscription product key.
         * @param array  $deactivation_response The response object from wp_safe_remote_request().
         */
        do_action( 'woocommerce_helper_subscription_deactivate_success', $product_id, $product_key, $deactivation_response );
    } else {
        /**
         * Fires when the Helper fails to activate a product.
         *
         * @param int    $product_id Product ID being deactivated.
         * @param string $product_key Subscription product key.