Do not use this function directly, use wp_embed_register_handler() instead. This function should probably also only be used for sites that do not support oEmbed.
Parameters
$idstring
An internal ID/name for the handler. Needs to be unique.
$regexstring
The regex that will be used to see if this handler should be used for a URL.
$callbackcallable
The callback function that will be called if the regex is matched.
$priorityintoptional
Used to specify the order in which the registered handlers will be tested. Lower numbers correspond with earlier testing, and handlers with the same priority are tested in the order in which they were added to the action. Default 10.Default: 10
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/class-wp-embed.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.