woocommerce_product_type_query, false, $product_id

woocommerce_product_type_query, false, $product_id

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_product_type_query, false, $product_id') is found 1 times:

  • /includes/class-wc-product-factory.php line 108
    	 * @return string|false
    	 */
    	public static function get_product_type( $product_id ) {
    		// Allow the overriding of the lookup in this function. Return the product type here.
    		$override = apply_filters( 'woocommerce_product_type_query', false, $product_id );
    		if ( ! $override ) {
    			return WC_Data_Store::load( 'product' )->get_product_type( $product_id );
    		} else {
    			return $override;
    		}
    	}