woocommerce_api_uploaded_image_from_url
Usage
add_action( 'woocommerce_api_uploaded_image_from_url', 'wp_kama_woocommerce_api_uploaded_image_from_url_action', 10, 3 ); /** * Function for `woocommerce_api_uploaded_image_from_url` action-hook. * * @param $upload * @param $image_url * @param $upload_for * * @return void */ function wp_kama_woocommerce_api_uploaded_image_from_url_action( $upload, $image_url, $upload_for ){ // action... }
- $upload
- -
- $image_url
- -
- $upload_for
- -
Where the hook is called
woocommerce_api_uploaded_image_from_url
woocommerce/includes/legacy/api/v3/class-wc-api-products.php 2232
do_action( 'woocommerce_api_uploaded_image_from_url', $upload, $image_url, $upload_for );