Where exactly do I add the filter?
-
Beautiful day to you Sir,
In your Introductory or Description Page, you mentioned something about filter and left this code:
=============================================================================function prefix_your_custom_embed_url_attributes( $video_url ) { $video_url .= '&modestbranding=1'; return $video_url; } add_filter( 'wp_video_popup', 'prefix_your_custom_embed_url_attributes' );
===============================================================================
Truth is that I am using a Child Theme, I don’t know PHP and Javascript, but I’m not afraid to go into functions.php, Style.CSS and Additional CSS to add code to my website.
The issue is that I’m looking at this code, and don’t really know what I expect it to do for me, nor do I know if there’s anything in it that I need to change to reflect my own preference.
Can you Please explain every part of this code to me? And also explain what it would actually help me do?
Waiting to hear from you soon.
Regards
- The topic ‘Where exactly do I add the filter?’ is closed to new replies.