woocommerce_admin_after_product_gallery_item хук-событиеWC 1.0

Allow for extra info to be exposed or extra action to be executed for this attachment.

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

add_action( 'woocommerce_admin_after_product_gallery_item', 'wp_kama_woocommerce_admin_after_product_gallery_item_action', 10, 2 );

/**
 * Function for `woocommerce_admin_after_product_gallery_item` action-hook.
 * 
 * @param  $thepostid     
 * @param  $attachment_id 
 *
 * @return void
 */
function wp_kama_woocommerce_admin_after_product_gallery_item_action( $thepostid, $attachment_id ){

	// action...
}
$thepostid
-
$attachment_id
-

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

WC_Meta_Box_Product_Images::output()
woocommerce_admin_after_product_gallery_item
woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-images.php 60
do_action( 'woocommerce_admin_after_product_gallery_item', $thepostid, $attachment_id );

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

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