Automattic\WooCommerce\Proxies

ActionsProxy::apply_filters()publicWC 1.0

Calls the callback functions that have been added to a filter hook.

Method of the class: ActionsProxy{}

Hooks from the method

Return

Mixed. The filtered value after all hooked functions are applied to it.

Usage

$ActionsProxy = new ActionsProxy();
$ActionsProxy->apply_filters( $tag, $value, ...$parameters );
$tag(string) (required)
The name of the filter hook.
$value(mixed) (required)
The value to filter.
...$parameters(mixed) (required)
Additional parameters to pass to the callback functions.

ActionsProxy::apply_filters() code WC 8.7.0

public function apply_filters( $tag, $value, ...$parameters ) {
	return apply_filters( $tag, $value, ...$parameters );
}