Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Filters Associated With Inventory
  5. Filter :inventory_enabled

Filter :inventory_enabled

Inventory enabled or not.

Active Since v3.0.0

Source

File: /inc/template-functions.php
Used by: /inc/template-functions.php

Parameters
Default is false, $trip_id.

Example:

function prefix_inventory_enabled() {
    return true;
}
add_filter( 'inventory_enabled', 'prefix_inventory_enabled' );
Was this article helpful to you? Yes No

How can we help?