Move those declarations out of the action. Simply paste both of them in the functions.php file and it will work (tested).
wp_deregister_script('wp-mediaelement');
wp_deregister_style('wp-mediaelement');
Related Posts:
- JQuery modal not loading video on popup, only displaying it after multiple reopenings
- start_lvl Ignored in Custom walker_nav_menu
- Enforcing password complexity
- Customize default settings on new sites on multisite
- Check if a menu is empty?
- Woocommerce auto cancel On-Hold after X days
- Add custom field to attachments in a specific category
- The values of custom fields are not available functions.php
- Why does “get_option” pull in the older value in options.php, rather than the newer value, on submission of a form?
- Enqueue less file not working in child theme?
- Show last 5 posts from specific category
- How can I loop into two different DIVS without repeating the DIVs
- Removing unnecessary wordpress files
- Displaying Logged-In User Name and avatar in WordPress Menu
- Change links automatically to affiliate links
- How to make thumbnail image fit into a div where image dimentions are completely different?
- Use is_product_category() properly
- Theme Options: If There is No Input, Don’t Display?
- Placing raw HTML inside a WordPress shortcode
- PHP can I add line numbers to file_get_contents()
- Changing Woocommerce flat rate every nth number of items
- Convert all images to PNG on file upload
- If search results empty then execute certain code
- Custom location for attached images
- Way to querry data (tags) from a wordpress database?
- Changing custom logo link
- Using fwrite() and “a” appends multiple times instead of once
- Where in PHP do I move title and meta (date) to bottom of each blog section?
- Add a variable in functions.php and call it in single.php
- How to display posts by current user in a drop down
- How does WordPress insert Paragraphs in posts
- Linking text within textarea of custom meta box
- How do I add custom bulk actions to multiple custom post types?
- Making BuddyPress Activity Stream (Post Type) Featured Images Clickable [closed]
- what is the best practice to add new field to an api route
- Auto-update products after they were published – Woocommerce
- Keyword checking in Gravity Forms
- how to refresh div on template part?
- Child page menu in sidebar
- Title Case WordPress Menu Items
- Alter required message using comment form api
- How to get Post Type from the functions.php file
- Edit the_category (); for a hierarchical display
- Omit custom post type from wp-sitemap.xml based on meta key using wp_sitemaps_posts_query_args
- Widget back end radio button issue
- Why does this update_post_meta function not delete the custom field itself?
- Using data sent via AJAX in multiple functions on a WP plugin
- Detecting if parent page has gallery
- Utilize Function in Child Theme / Template File
- GET problem in WordPress
- Help with WordPress function inside a shortcode
- How to have different site identity logos on each page on Astra Theme [closed]
- WP All Import / Update stock quantity from multiple XML files
- Removing “Powered by” footer using child theme PHP [closed]
- Overide Variable in Child Theme
- child parent styles enqueue order
- Add URL parameter to all internal links using a specific theme
- How to style injected code in header section?
- Randomize Color Scheme Selection in Theme
- Include a file that has a function in it
- Execute Jquery when a specific page in my plugin is loading
- AJAX function not working [closed]
- SQL error with custom query
- Products listing check if meta checkbox is checked
- How to preload header logo image in WordPress? like what’s the code and where do I put it?
- Contain multiple page templates in one PHP custom template file in WordPress?
- How do I reopen the (Popup Maker) after entering the correct password for a password protected page?
- Display metabox galleries on specific page template in admin editor
- display condition based on post term and status
- Only the first image uploads
- Custom plugin: how do I call a PHP file if settings option is set to true?
- removing the standard dashboard widgets in WP so I Can replace with custom
- Gravity Forms: How to add PHP function to confirmation conditional shortcode?
- wpdb->query returns different value to phpMyAdmin
- Edit a function to take different actions based on user role
- How to put 2 php codes in functions.php without site crashing
- How to change order inside foreach using wp_enqueue_script?
- Change header on one page in WordPress
- How do I get the value of a current user’s custom field?
- Adding extra data to shortcode attributes and pass it to JS with wp_localize_script
- Add Product Permalink in woocommerce admin order page
- Allow Comments by Default for Multiple Post Types
- Cleaner ‘for each’ loop for registering scripts in functions.php
- How do I make comment-reply-button with that takes to comment reply form on click
- How to get User Avatar Image with link to Author and User name in Html Title tag?
- WP HTTP API call response
- Fatal error when using array_diff() function inside of wp_update_nav_menu hook?
- How to get all users by user_login as a json_encode array?
- Private messaging – Getting and displaying the avatar/url of a message recipient
- Allow BBPress participant role to trash topics
- Postmeta not saving
- Fix My Custom Function: Remove Automatic
- Hide the content before the more tag in the “single page”
- Replace TinyMCE with Custom Built Editor
- WP Debug enabled Undefined index error in a widget
- Particular meta tag – viewport – insertion when dealing with plugin
- how to loop through blog posts in php
- How to limit the number of posts in the wordpress loop in conjunction with the “download more” button?
- Need help with conditional logic for menus
- Custom Admin Menu Report for Specific User ID