Technical Docs

Search Documentation

Function: tribe_retrieve_object_by_hook

Attempts to find and return an object of the specified type that is associated with a specific hook.

Located at src/functions/utils.php (Line: 348)

Description

This is useful when third party code registers callbacks that belong to anonymous objects and it isn’t possible to obtain the reference any other way.

Parameters summary

(string) $class_name
(string) $hook
(int) $priority

Return value summary

(object)
(false)

Examples

object|false tribe_retrieve_object_by_hook ( string $class_name, string $hook, int $priority )