wp_embed_unregister_handler

Unregisters a previously-registered embed handler.

Description

wp_embed_unregister_handler( (string) $id, (int) $priority = 10 ); 

Parameters (2)

0. $id (string)
The handler ID that should be removed.
1. $priority — Optional. (int) => 10
The priority of the handler to be removed. Default 10.

Usage

  1. if ( !function_exists( 'wp_embed_unregister_handler' ) ) { 
  2. require_once ABSPATH . WPINC . '/embed.php'; 
  3.  
  4. // The handler ID that should be removed. 
  5. $id = ''; 
  6.  
  7. // Optional. The priority of the handler to be removed. Default 10. 
  8. $priority = 10; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = wp_embed_unregister_handler($id, $priority); 
  12.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/embed.php  
  1. function wp_embed_unregister_handler( $id, $priority = 10 ) { 
  2. global $wp_embed; 
  3. $wp_embed->unregister_handler( $id, $priority );