woocommerce_rest_api_uploaded_image_from_url хук-событие . WC 1.0
Использование
add_action( 'woocommerce_rest_api_uploaded_image_from_url', 'action_function_name_154', 10, 2 ); function action_function_name_154( $file, $image_url ){ // action... }
- $file
- -
- $image_url
- -
Где вызывается хук
woocommerce_rest_api_uploaded_image_from_url
woocommerce/includes/wc-rest-functions.php 120
do_action( 'woocommerce_rest_api_uploaded_image_from_url', $file, $image_url );