Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: oembed_providers

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
60            * Discovery is disabled for users lacking the unfiltered_html capability.
61            * Only providers in this array will be used for those users.
62            *
63            * @see wp_oembed_add_provider()
64            *
65            * @since 2.9.0
66            *
67            * @param array $providers An array of popular oEmbed providers.
68            */
69           $this->providers = apply_filters( 'oembed_providers', $providers );
70
71           // Fix any embeds that contain new lines in the middle of the HTML which breaks wpautop().
72           add_filter( 'oembed_dataparse', array($this, '_strip_newlines'), 10, 3 );
73      }
74
75      /**
76       * The do-it-all function that takes a URL and attempts to return the HTML.
77       *
78       * @see WP_oEmbed::discover()