woocommerce_helper_subscription_activate_success

woocommerce_helper_subscription_activate_success

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_helper_subscription_activate_success') is found 3 times:

  • /includes/admin/helper/class-wc-helper.php line 1091
    1087
    1088
    1089
    1090
    1091
    1092
    1093
    1094
    1095
    1096
    1097
         * @param int    $product_id Product ID being activated.
         * @param string $product_key Subscription product key.
         * @param array  $activation_response The response object from wp_safe_remote_request().
         */
        do_action( 'woocommerce_helper_subscription_activate_success', $product_id, $product_key, $activation_response );
    } else {
        /**
         * Fires when the Helper fails to activate a product.
         *
         * @param int    $product_id Product ID being activated.
         * @param string $product_key Subscription product key.
  • /includes/admin/helper/class-wc-helper.php line 2016
    2012
    2013
    2014
    2015
    2016
    2017
    2018
    2019
    2020
    2021
    2022
         * @param string $product_key Subscription product key.
         * @param array  $activation_response The response object from wp_safe_remote_request().
         * @since 9.7
         */
        do_action( 'woocommerce_helper_subscription_activate_success', $product_id, $product_key, $activation_response );
    } else {
        self::log( 'Could not activate a subscription upon plugin activation: ' . $filename );
     
        /**
         * Fires when the Helper fails to activate a product.
         *
  • /includes/admin/helper/class-wc-helper.php line 2086
    2082
    2083
    2084
    2085
    2086
    2087
    2088
    2089
    2090
    2091
    2092
         * @param int    $product_id Product ID being activated.
         * @param string $product_key Subscription product key.
         * @param array  $activation_response The response object from wp_safe_remote_request().
         */
        do_action( 'woocommerce_helper_subscription_activate_success', $product_id, $product_key, $activation_response );
    } else {
        self::log( 'Could not activate a subscription for theme: ' . $theme['Name'] );
     
        /**
         * Fires when the Helper fails to activate a product.
         *