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.5.1

do_action('woocommerce_helper_subscription_deactivate_success') is found 2 times:

  • /includes/admin/helper/class-wc-helper.php line 1183
    1179
    1180
    1181
    1182
    1183
    1184
    1185
    1186
    1187
    1188
    1189
         * @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 2109
    2105
    2106
    2107
    2108
    2109
    2110
    2111
    2112
    2113
    2114
    2115
         * @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.