image_id

image_id

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('image_id') is found 1 times:

  • /includes/class-wc-product-variation.php line 377
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    public function get_image_id( $context = 'view' ) {
        $image_id = $this->get_prop( 'image_id', $context );
     
        if ( 'view' === $context && ! $image_id ) {
            $image_id = apply_filters( $this->get_hook_prefix() . 'image_id', $this->parent_data['image_id'], $this );
        }
     
        return $image_id;
    }
     
    /**