WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
64 | * Discovery is disabled for users lacking the unfiltered_html capability. |
65 | * Only providers in this array will be used for those users. |
66 | * |
67 | * @see wp_oembed_add_provider() |
68 | * |
69 | * @since 2.9.0 |
70 | * |
71 | * @param array $providers An array of popular oEmbed providers. |
72 | */ |
73 | $this->providers = apply_filters( 'oembed_providers', $providers ); |
74 |
|
75 | // Fix any embeds that contain new lines in the middle of the HTML which breaks wpautop(). |
76 | add_filter( 'oembed_dataparse', array($this, '_strip_newlines'), 10, 3 ); |
77 | } |
78 |
|
79 | /** |
80 | * The do-it-all function that takes a URL and attempts to return the HTML. |
81 | * |
82 | * @see WP_oEmbed::discover() |