The comments button and the share button are generated in two separate default actions, so you have to remove them both:
remove_action( 'embed_content_meta', 'print_embed_comments_button' );
remove_action( 'embed_content_meta', 'print_embed_sharing_button' );
Related Posts:
- Security when outputing wp_oembed_get code
- How to use get_media_embedded_in_content function
- Set first oembed in post to a global variable or function
- How to add new embed handler not supported by oembed?
- How can I grab the video id of youtube?
- WordPress converts media extention URL automatically to video player
- Setting youtube size in functions.php
- Combine embed_oembed_html and oembed_result
- WordPress functions.php conditional include another functions file
- Embed video from streamtape using direct link
- oembed facebook link?
- custom COOKIE on custom page
- Apply height and width for the_content() inside youtube video tag
- How do I get the current edit page ID in the admin?
- Does hooking into the same action multiple times drain memory?
- Disable visual editor on one specific page
- How to display random users with avatars
- Apply custom role capabilities to administrator (without plugin)
- Can the wp-plugins (Must Use Plugins) URL be targeted for use in functions.php?
- In a WordPress plugin, how do you output HTML code inside the DOM header? [closed]
- Different ‘WP_CONTENT_URL’ for different subsites in Multisite setup?
- Linking thumbnail to full size image
- is_front_page not working in functions.php
- VERY new to coding – keep breaking site trying to add to functions.php
- Remove image from post_content on save_post
- WP_Cron doesn’t do the job: Multisite stats
- Simple/basic use of get_current_screen
- Why are image thumbnails cropped proportionally (not per dimensions)?
- Customize “the_posts_pagination” and put list instead div
- How to display most viewed post in my sidebar?
- override parent theme configuration in child functions.php
- wp_insert_posts keeps adding multiple pages
- Best practice when altering a parent theme function inside a child theme?
- list tags with count in author profile page
- Breadcrumbs – Exclude Child Categories
- Why won’t my scripts load?
- Overwriting Parent Theme’s Image Sizes
- Hard-coding custom menu elements for menu manager
- Limit length of first excerpt in the loop
- Do not add content filter on page template
- Create post using Ajax
- Function to update post_meta based on existing post_meta
- Load jquery only for certain pages in the backend
- check if the user is owner of current page
- How to set the default avatar of buddypress avatar [closed]
- Custom styles.css sheet for visual editor
- Publishing just a Facebook URL without full code snippet
- Filter an WordPress Function in (general-template.php)
- Conditional statement not working in function
- WordPress get_media_embedded
- Remove the month and year from a WordPress Date?
- Show some menu sub items as dropdown under a menu item
- Set “woocommerce_is_purchasable” to false for specific “$product->is_stock_status”
- The correct way to add a JavaScript in the functions.php [closed]
- How to remove some item from WordPress Dashboard for user Author
- How to make a new function that includes a template
- Disabling Author Page only for subscribers
- Showing user profile data on front-end
- How to register a menu based on a ACF condition
- How to convert raw url to hyperlink?
- Breaking up multiple words and inserting an image after first word
- get content from page through AJAX
- Why is this function crashing my wordpress installation? [closed]
- colorbox not loading in
- how can I change all wordpress media file url to custom cdn url?
- Changing the HTML of notices in WooCommerce [closed]
- Can I use ‘Featured Image’ as a hero image and a thumbnail?
- How to Override Page Template if URL matches query?
- Save_post – Warning: Cannot modify header information
- How to use WP conditional tag in a functions.php with OCEANWP Theme?
- Woocommerce Display Discount On cart
- Modify content inside post before first publish
- Pass an argument into a function to extract from array
- function class doesnt work
- how to remove a tag in the_category function
- Load CSS file conditionally
- my wordpress doesn’t save items to customized widget area
- Copying a widget class to functions.php results on a blank page
- How to create admin ajax function for my contact form
- No compression occurs on my jpegs after adding jpeg_quality hook to my functions.php file
- Changing the register url is not working
- Newest comments first not working
- Pass arguments to function class with do_action()
- How to a override parent theme page that has been included with require_once?
- how to display featured image for single post for a specific category
- Database Query not working
- Can I use a function to return HTML and the result of another function?
- save_post hook – headers already sent?
- Excerpt length: get 2 paragraphs
- Remove heading tags on line break
- How to use WP_rewrite?
- Wp get archive only text not link
- can not call functions in function.php
- Sort results by name & asc order on homepage
- What are the parameters are used in add_action and filters?
- I want to add the alt attribute to all the photos!
- Does functions.php apply to every page?
- Creating mixture of shortcodes to use in the visual/text editor
- comment_post function with js not running
- Problem with removing characters “<” – WpAllImport