WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
фильтр не описан

woocommerce_rest_suppress_image_upload_error хук-фильтр . WC 1.0

Использование

add_filter( 'woocommerce_rest_suppress_image_upload_error', 'filter_function_name_6626', 10, 4 );
function filter_function_name_6626( $false, $upload, $object_id, $images ){
	// filter...

	return $false;
}
$false
-
$upload
-
$object_id
-
$images
-

Где вызывается хук

ImageAttachment::upload_image_from_src()
woocommerce_rest_suppress_image_upload_error
WC_REST_Products_Controller::set_product_images()
woocommerce_rest_suppress_image_upload_error
WC_REST_Product_Variations_Controller::set_variation_image()
woocommerce_rest_suppress_image_upload_error
WC_REST_Products_V2_Controller::set_product_images()
woocommerce_rest_suppress_image_upload_error
WC_REST_Products_V1_Controller::set_product_images()
woocommerce_rest_suppress_image_upload_error
woocommerce/includes/rest-api/Utilities/ImageAttachment.php 50
if ( ! apply_filters( 'woocommerce_rest_suppress_image_upload_error', false, $upload, $this->object_id, $images ) ) {
woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php 241
if ( ! apply_filters( 'woocommerce_rest_suppress_image_upload_error', false, $upload, $product->get_id(), $images ) ) {
woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php 361
if ( ! apply_filters( 'woocommerce_rest_suppress_image_upload_error', false, $upload, $variation->get_id(), array( $image ) ) ) {
woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php 1111
if ( ! apply_filters( 'woocommerce_rest_suppress_image_upload_error', false, $upload, $product->get_id(), $images ) ) {
woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php 856
if ( ! apply_filters( 'woocommerce_rest_suppress_image_upload_error', false, $upload, $product->get_id(), $images ) ) {

Где используется хук в ядре WooCommerce

Использование не найдено.