weight

weight

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('weight') is found 1 times:

  • /includes/class-wc-product-variation.php line 234
    		$value = $this->get_prop( 'weight', $context );
    
    		// Inherit value from parent.
    		if ( 'view' === $context && empty( $value ) ) {
    			$value = apply_filters( $this->get_hook_prefix() . 'weight', $this->parent_data['weight'], $this );
    		}
    		return $value;
    	}
    
    	/**
    	 * Returns the product length.