WP_Embed::unregister_handler()
Unregisters a previously-registered embed handler.
Do not use this function directly, use wp_embed_unregister_handler() instead.
Method of the class: WP_Embed{}
No Hooks.
Return
null
. Nothing (null).
Usage
global $wp_embed; $wp_embed->unregister_handler( $id, $priority );
- $id(string) (required)
- The handler ID that should be removed.
- $priority(int)
- The priority of the handler to be removed .
Default: 10)
WP_Embed::unregister_handler() WP Embed::unregister handler code WP 6.6.2
public function unregister_handler( $id, $priority = 10 ) { unset( $this->handlers[ $priority ][ $id ] ); }