woocommerce_api_uploaded_image_from_url

The WooCommerce woocommerce api uploaded image from url hook.

Description

do_action( 'woocommerce_api_uploaded_image_from_url', (unknown) $upload, (unknown) $image_url, (unknown) $upload_for ); 

Parameters (3)

0. $upload (unknown)
The upload.
1. $image_url (unknown)
The image url.
2. $upload_for (unknown)
The upload for.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'woocommerce_api_uploaded_image_from_url', $upload, $image_url, $upload_for ); 
The following example is for adding a hook callback.
  1. // define the woocommerce_api_uploaded_image_from_url callback 
  2. function action_woocommerce_api_uploaded_image_from_url( $upload, $image_url, $upload_for ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'woocommerce_api_uploaded_image_from_url', 'action_woocommerce_api_uploaded_image_from_url', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'woocommerce_api_uploaded_image_from_url', 'action_woocommerce_api_uploaded_image_from_url', 10, 3 ); 

Defined (1)

The action is defined in the following location(s).

/includes/api/legacy/v3/class-wc-api-products.php  
  1. do_action( 'woocommerce_api_uploaded_image_from_url', $upload, $image_url, $upload_for );