wp_embed_register_handler


wp_embed_register_handler ( $id, $regex, $callback, $priority = 10 )

Parameters:
  • (string) id An internal ID/name for the handler. Needs to be unique.
  • (string) regex The regex that will be used to see if this handler should be used for a URL.
  • (callable) callback The callback function that will be called if the regex is matched.
  • (int) priority Optional. Used to specify the order in which the registered handlers will be tested. Default 10.
Defined at:

Description

Registers an embed handler.Should probably only be used for sites that do not support oEmbed.

Related Functions

wp_embed_unregister_handler, wp_oembed_register_route, wp_deregister_style, wp_embed_handler_audio, wp_remote_retrieve_header

Top Google Results

User discussions

wpseek mobile