woocommerce_helper_subscription_activate_success, $product_id, $product_key, $activation_response

woocommerce_helper_subscription_activate_success, $product_id, $product_key, $activation_response

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

do_action('woocommerce_helper_subscription_activate_success, $product_id, $product_key, $activation_response') is found 3 times:

  • /includes/admin/helper/class-wc-helper.php line 1192
    			 * @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 2296
    			 * @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 2365
    			 * @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.
    			 *