Signature, return type and hooks compared across 5 parsed releases.
7.1.0
Parameter $callback retyped from callable|string|array to callable.verified against source
7.1.0
Uses spl_object_id() instead of spl_object_hash() for performance.from the docblock
6.9.7
Return type changed from string to string|null.verified against source
6.9.0
Returns explicit null if an invalid callback is supplied.from the docblock
5.3.0
Removed workarounds for spl_object_hash(). $hook_name and $priority are no longer used, and no longer returns false, but can still return void for invalid callbacks.from the docblock
2.2.3
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/plugin.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.