a little late, but it might be because this is a filter, and you’re adding it as an action,
try
add_filter( 'wp_embed_handler_youtube', 'bigger_youtube_embeds', 10, 4);
function bigger_youtube_embeds($embed, $attr, $url, $rawattr) {
// alter the $embed string...
return $embed;
}
Related Posts:
- add_filter to youtube embeds?
- How to edit embed filter for youtube video to allow responsive full width layout
- Query WP REST API v2 by multiple meta keys
- Removing Image and Caption Dimension Attributes
- is it possible to add “extra” table nav to edit-tags.php screens?
- Filter media library items by size
- xmlrpc_enabled filter not called
- How to apply the “retrieve_password_message” filter?
- Remove left alignment option in core/image block
- Change “You are now logged out” text
- Anyway to edit the titlebar of WordPress Widgets in the Admin area?
- Using hooks to place content in theme dynamically
- How can I find out what an `apply_filter` call is actually doing?
- wp_title() empty on a static front page
- Search pre_get_posts filter which can handle multiple post types and categories?
- End excerpt at the end of the sentence
- Customize the “Registration complete. Please check your e-mail.” message on WP 4.0
- posts_groupby problem
- Remove classes from post_class()
- Customize WooCommerce Error Message
- Dump contents of a variable inside a filter/hook callback that runs during save post
- Customize user account activation message
- Conditionally call add_action depending on post_type?
- Allow users to exclude categories? (WP 3.1.2)
- Replace a part of url generated by get_term_link
- Error when overriding only some audio shortcode HTML output
- Filter category in WooCommerce shop page to display related sub-category
- Run oembed separately outside the_content()
- Hook Into the_content Filter For JSON API Only [closed]
- Where can you find the available filter tags?
- Is possible dequeue/remove style from wp_footer() hook and add on wp_head() hook?
- Removing an action, or dequeueing style – Both not working
- Where is the changelog for 3.5? where is the list of added removed files?
- Move a file from a directory to another
- When does wordpress process <!–nextpage–>
- Remove style `?ver=` from `/wp-admin/upgrade.php`
- Add attribute to script loaded by the theme
- Redirect to checkout woocommerce failed
- Filter the regular price of woocommerce products
- remove action from AMP plugin
- Correct way to filter get_pages() function
- theme_page_templates not working
- wp_insert_post_data filter hook identify current action
- Add Class to a div using a filter?
- Filter custom post type using multiple taxonomy dropdowns
- Add new post with predefined / preset date
- How to link the whole list item in Gutenberg’s latest posts block?
- Remove Extra Classes from Post Title
- Upload file if contains certain name
- Filters/Bulk Actions return wrong URL in admin dashboard
- I want to allow the use of a data-flw attribute in links in comments
- What hooks to hook onto for automatic cache clearing
- Add filter menu to admin list of posts (of custom type) to filter posts by custom field values
- How can I output all apply_filters and do_action?
- Override has_post_thumbnail function
- How to allow code block in wordpress comments
- remove_action: how to access to a method in an child class?
- Set default value for “Additional CSS class(es)” for specific block types
- Contact Form 7 Custom Validation Doesn’t Get Called [closed]
- Woocomemrce order and registration fileds to UPPERCASE
- add_filter to wp_nav_menu_objects having no impact
- Trimming a custom field to a length
- Filter content for get_the_content()
- Using add_filter to modify a public function of a class
- How to hide/remove GhostKit component panel in gutenberg block inspector
- WordPress removing slashes from shortcode output
- when use function the_content break
- Filter page title (displayed in browser tab) of wp-login
- Adding html banner to posts
- need correction with a snippet in functions.php [closed]
- conditional search
- output custom Posts on a Page
- Filter “Your latest posts”
- Sql query does not work well
- Hide certain product filters from specific product categories
- WordPress Gutenberg core/heading block (wp-block-heading)
- Add an attribute to the root from functions.php with add_filter
- Would like to use hook or filters to customize email templates
- Removing menus from users other than the administrator
- Can’t understand apply_filter logic
- Apply pre_get_posts filter in a certain moment (just for a particular block of posts)
- Modify oembed code conditionally
- How to Change the WordPress Locale with the ‘locale’ Filter?
- meta box loop problem with a search filter
- How can I add a prefix to titles displayed in sidebar using function.php?
- Modify Default URL for /wp-includes/js/wp-emoji.js?ver=4.6.1
- List all image sizes still getting disabled sizes
- wp_editor customization
- What problems could happen if I replaced add_filter and add_action with the function calling
- posts_results filter function memory errors
- is_page_template() doesn’t work with excerpt_length filter
- Turn wp_tag_cloud into a front-end filter
- What is the scope and persistence of add_filter() and remove_filter()?
- Add HTML to Page Content
- GET form action. Redirect to self
- if i put the code in my theme’s function.php file can it work?
- Admin New Order: Autofocus on Search a product
- Hooking/Filtering theme name to add theme directory
- Passing value from one hook to another
- How to use filter in this situation, can not modify the structure using filter