You should consider using the Auto-embeds Disabler plugin here: https://gist.github.com/ocean90/3796628
Note that it’s actually just a single line of code, if you prefer to add that to your functions.php – but I’d suggest keeping it as a plugin so you can easily activate/deactivate that functionality.
remove_filter( 'the_content', array( $GLOBALS['wp_embed'], 'autoembed' ), 8 );
Note that WordPress should only be automatically converting URLs, but NOT links. If you create an actual link to the media item, WordPress should display it as a link as opposed to an embedded player.
Related Posts:
- how can I change all wordpress media file url to custom cdn url?
- What’s the difference between home_url() and site_url()
- Prevent “main” WPMU site_url() being returned in functions
- Custom page with variables in url. Nice url with add_rewrite_rule
- How do I use the WP image functions in a page template?
- Removing default image size list in Media Box
- How to reduce original image quality on upload?
- Is it possible to use a forgot password url filter?
- Create Custom URL structure for specific Post category
- How to remove the embed_footer?
- How can I rename the WordPress AJAX URL? [duplicate]
- How to display more audio file ID3 tags in WordPress
- How to add new embed handler not supported by oembed?
- Ninja form Redirect depending on text field content [closed]
- Can I hide certain upload folders in media library [duplicate]
- Restore Image Title Text
- Automatically assign video ‘poster’ value to ‘filename’ for archive listing
- Updating Media Published Date When Parent Post Is Modified in WordPress
- wp-comment author- url +, email filter hook
- Removing custom meta data
- WordPress on AWS Auto scaling and ELB giving 503
- Setting youtube size in functions.php
- Set spesific size of featured images
- meta tags doesnt fetch data from permalinks
- Get arguments from URL
- Limit dimensions of “Full” size images
- Add unique id to Preview URL
- Can’t locate custom image sizes defined by child theme
- How can I set the SRC URL of the custom logo image?
- Need to convert image url to a Base_64 data url with wordpress function..
- Protect get_query_var from manual input in url
- Problem with images URL after filter applying
- How i can get the URL?
- include w_thumbnail_src in function?
- Facebook OpenGraph error, Call to undefined function wp_get_attachment_src()
- Create Custom URL structure for specific Post category using Post ID instead of post name
- Fetch URL parameter
- Custom route and extract data from slashes and parameter
- WordPress functions.php conditional include another functions file
- reWrite wp-content url to point on my cdn
- Put images in the media from url functions
- How to add HTML into error message
- How to Override Page Template if URL matches query?
- Add #primary at the end of navlink permalinks on single posts
- Security when outputing wp_oembed_get code
- Set URL Parameter Post Layout As Default
- Function image_send_to_editor returns emty title tag
- Using Switch Statement to Change Image According to Last Digit of Topic ID
- Zip all (original) images from media gallery
- custom COOKIE on custom page
- Instead of using $post, how do i get the thumbnail image of the $post
- How to add a meta information to the URL?
- Apply height and width for the_content() inside youtube video tag
- Create input select image URL?
- How do I change the URL returned by next_posts_link()?
- Function in functions.php by url
- Would it be possible to disable embeds for specific user roles? If so, how?
- Uploading images via ACF update_field function
- How to display custom field in woocommerce orders in admin panel?
- Issue with get_theme_mod returning a blank value instead of the saved value
- Attach a private function at a hook?
- wp-admin page is blank
- remove from text-widget
- Using email_exists() wp function in an ajax request
- jquery won’t load in footer
- How to find the source of the text for wordpress website? I want to change that text
- Count total number of images in post and echo results as number
- Functions – callback vs fallback
- How to make child theme inherit parent custom theme options [closed]
- Get the category name outside of the loop in category.php
- when I fetch data from remote mysql database in wordpress built in wordpress function is not working?
- Short_title character problem
- Unset Category if other Category is unset during post transition
- Conditional read more adjustment
- Assigning WP functions which echo to PHP variables
- WordPress menu link doesn’t work properly
- Pagination in relation to archive.php
- Function to alphabetically sort custom post types creating duplicates
- get_post_meta() problem again
- Update users custom profile fields
- Add back in child theme what the parent theme removed with remove_action
- replace text in Sort Box
- What is the better for call files: bloginfo() or echo esc_url()?
- WordPress website keeps loading the maintenance page
- loginout function customization
- Dashboard blocker on network multisite for specific user roles
- How to change images url in function.php?
- Probleme shortcode with list author
- Stylesheet does not load despite functions.php
- How to show only specific category post by user role without plugin and restrict all other cats
- Unable to declare AOS library in functions
- Removing sanitize_title_with_dashes Function with The Real Title
- Graphic before title – Specific Category
- Printing medium sized image
- Embed button for post screen
- How to programmatically GET (to know) which Sidebar (or) which Menu is being used on Different Pages?
- Making an under maintenance page (without using plugins)
- Image width issue in IE [closed]
- Vimeo video play button color function
- Loading newest dependency javascript module file in functions.php