(hook_prefix)image_id
Usage
add_filter( '(hook_prefix)image_id', 'wp_kama_hook_prefiximage_id_filter', 10, 2 ); /** * Function for `(hook_prefix)image_id` filter-hook. * * @param $parent_data_image_id * @param $that * * @return */ function wp_kama_hook_prefiximage_id_filter( $parent_data_image_id, $that ){ // filter... return $parent_data_image_id; }
- $parent_data_image_id
- -
- $that
- -
Where the hook is called
(hook_prefix)image_id
woocommerce/includes/class-wc-product-variation.php 372
$image_id = apply_filters( $this->get_hook_prefix() . 'image_id', $this->parent_data['image_id'], $this );