I
I
iNatalia2013-08-09 19:29:36
YouTube
iNatalia, 2013-08-09 19:29:36

Wordpress and automatic embedding of Youtube videos

Good afternoon, I have the following task:
Before the YouTube video player, insert the title of this video directly.
The video is inserted automatically using the tools of Wordpress itself. I searched through all the class-oembed.php code and the rest, but I did not find the place where the line is formed that displays the player itself.
Please help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikolai Antal, 2013-08-10
@iNatalia

I didn’t quite understand what the title was, but maybe this filter will help: “embed_oembed_html”. Located in /wp-includes/class-wp-embed.php Embedding a
video using the "[embed]" shortcode?

R
Roman Misyura, 2013-08-10
@MindMinimal

You can read goo.gl/cgX78h (You can deal with the YouTube API)
But in general, I would look in the direction of plugins then. Or you can write your own.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question