wphooks.info - oembed_providers

oembed_providers

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/class-oembed.php:
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
		 * | Rdio         | rdio.com             |      Yes       | 3.6.0     | 4.4.1     |
		 * | Rdio         | rd.io                |      Yes       | 3.6.0     | 4.4.1     |
		 * | Vine         | vine.co              |      Yes       | 4.1.0     | 4.9.0     |
		 *
		 * @see wp_oembed_add_provider()
		 *
		 * @since 2.9.0
		 *
		 * @param array[] $providers An array of arrays containing data about popular oEmbed providers.
		 */
		$this->providers = apply_filters( 'oembed_providers', $providers );

		// Fix any embeds that contain new lines in the middle of the HTML which breaks wpautop().
		add_filter( 'oembed_dataparse', array( $this, '_strip_newlines' ), 10, 3 );
	}

	/**
	 * Exposes private/protected methods for backward compatibility.
	 *
	 * @since 4.0.0