Technical Docs

Search Documentation

Function: tribe_callback

Returns a lambda function suitable to use as a callback; when called the function will build the implementation bound to `$classOrInterface` and return the value of a call to `$method` method with the call arguments.

Located at src/Tribe/Container.php (Line: 260)

Parameters summary

(string) $slug A class or interface fully qualified name or a string slug.
(string) $method The method that should be called on the resolved implementation with the specified array arguments.

Return value summary

(callable) A PHP Callable based on the Slug and Methods passed


callable tribe_callback ( string $slug, string $method )