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
- Is there a way to batch-find unlinked text URLs in the body text of all my posts and link them?
- Missing feature image link function
- Remove “Category:”, “Tag:”, “Author:” from the_archive_title
- get_template_directory_uri pointing to parent theme not child theme
- How to customize the_archive_title()?
- remove empty paragraphs from the_content?
- What is the “with_front” rewrite key?
- Why use if function_exists?
- How to override parent functions in child themes?
- wp_enqueue_script was called incorrectly
- Add multiple custom fields to the general settings page
- Ajax call always returns 0
- 400 bad request on admin-ajax.php only using wp_enqueue_scripts action hook
- How long does a deprecated function live in core?
- Solution to render Shortcodes in Admin Editor
- How to add a data attribute to a WordPress menu item
- What’s the difference between esc_html, esc_attr, esc_html_e, and so on?
- remove_action on after_setup_theme not working from child theme
- plugins_url vs plugin_dir_url
- Remove type attribute from script and style tags added by WordPress
- How to run a function every 5 minutes?
- Best way of passing PHP variable between partials?
- Upload Multiple Files With media_handle_upload
- How to display custom field in woocommerce orders in admin panel?
- Adding fields to the “Add New User” screen in the dashboard
- Issues with title-tag and document_title_parts
- How do I get the current edit page ID in the admin?
- How to check if a user exists by a given id
- Why isn’t is_page working when I put it in the functions.php file?
- Add tags to the section via functions.php
- Add image size if page template
- How to create a custom order status in woocommerce!
- Remove Actions/Filters added via Anonymous Functions
- Adding a second email address to a completed order in WooCommerce [closed]
- How to load parent_theme functions.php before child_theme?
- How to load scripts/styles specific for a page
- Programatically add options to “add new” custom field dropdown
- How to make a image-size selected by default in Media upload – WP v3.5
- Is there any global functions.php file which works for any theme?
- Excluding iPad from wp_is_mobile
- When should you, and when should you not, use wp_list_pluck()?
- Get the ID of the page a menu item links to?