Automattic\WooCommerce\Vendor\League\Container\Inflector
InflectorAggregateInterface::add() public WC 1.0
Add an inflector to the aggregate.
{} It's a method of the class: InflectorAggregateInterface{}
No Hooks.
Return
Inflector.
Usage
$InflectorAggregateInterface = new InflectorAggregateInterface(); $InflectorAggregateInterface->add( $type, $callback ) : Inflector;
- $type(string) (required)
- -
- $callback(callable)
- -
Code of InflectorAggregateInterface::add() InflectorAggregateInterface::add WC 5.0.0
public function add(string $type, callable $callback = null) : Inflector;