According to the documentation for remove_action() the function name and priority must match the usage where the function was hooked. You have made a common sense assumption that a higher priority should be used for the removal but I believe that is the cause of the problem.
Docs:
https://developer.wordpress.org/reference/functions/remove_action/
To remove a hook, the $function_to_remove and $priority arguments must match when the hook was added. This goes for both filters and actions. No warning will be given on removal failure.
Update your remove action statement to explicitly define a priority of 10:
remove_action( 'wp_footer', array('External_Plugin','inject-code', 10 ) );
Related Posts:
- post formats – how to switch meta boxes when changing format?
- Content hooks vs User hooks
- Restrict post edit/delete based on user ID and custom field
- Adding an assisting editor box to Post page
- Get updated post meta on save_post action?
- Metabox Data not being saved [closed]
- Post IDs missing on delete_postmeta action hook
- Options to get my custom post type metadata via the WordPress API
- Set default Custom Post Meta Value
- How to prevent further updates of custom meta when using actions to set one meta based on another
- Add box with custom per-page properties
- wordpress is_front_page() issue
- add post meta front end edit
- I can not display meta value in extras.php and template-tags.php
- Add post meta data date to event
- Check if any meta on the post has value then display content
- Get or set values in post meta
- I created a Custom Meta Box but it is not displaying the value on my post page
- update_post_meta() throws Uncaught error: Cannot create duplicate attribute
- How to call get_post()?
- How we insert values into database using metabox WordPress?
- Post meta box data not saving
- Hide individual page title using checkbox in custom meta box?
- Get posts by meta value
- advanced custom fields update_field for field type: Taxonomy
- update_post_meta not saving when value is zero
- Remove post meta keys
- delete unused postmeta
- Using Advanced Custom Field (ACF) to insert meta description on each page
- How to store multiple input values with same meta_key
- Using radio button meta data from a custom meta box
- Formatting custom meta box date from YYYY/MM/DD to a more readable alternative
- metabox upload file
- Generate an Email address from that of the Post Author
- Why does get_post_meta not work with the posts page?
- How to get the total number of meta_values based on a custom post type?
- Is there a need for nonce with Post Metabox?
- Does “update_post_meta” check if value is the same before updating?
- Where to hook my plugin’s action
- Add a meta value if admin , editor or any other user have open a post in edit mode
- Finding the page id
- WP_POSTMETA – What do these values mean inside the data structure?
- Undefined Variable – Custom Post Type Meta
- Update Line Item Meta Data – WooCommerce API
- Unset field from an array not working as expected
- Update post_meta with WooCommere variation data
- What type of index should I use for postmeta?
- Metabox not show in categories custom post type cmb2
- Meta function issue
- need some assistance with the checkboxes (selecting/deselecting featured posts)
- get_post_meta() not work for the first post inside the loop
- Add custom action in post type
- Display Custom Meta Box Field Only If Value is Present
- Adding new value to existing meta key
- delete post meta by AJAX
- how to get a list of meta data fields assocaited with a custom post type
- Gutenberg: How to display meta field data in the block frontend (save function)
- String taken from database table post_meta is showing HTML tags on Frontend
- save_post_{$post->post_type} action firing on second save
- Save meta data with post, Without using any plugin [closed]
- How do I edit the posted “by” and “on” in the post meta
- update_post_meta() adding bits in database [closed]
- Get posts ordered by meta data
- Displaying values from related field – if empty shows current post type’s link and title
- Sanitaizing Select Optin For Custom Post Type Metabox in WP
- get_post_meta inside echo [closed]
- WordPress postmeta: Store data as an array or single item?
- Display Post Meta in Header
- Simple Custom Metabox Not Saving
- Custom fields or something else
- How to avoid saving empty data to sql while using add_meta_box
- I want to Add Feedburner Right After Meta Details
- if get_post_meta function returns empty – Do Not Display HTML
- Custom column on CPT not showing correct value when meta data not set
- How to access post meta on the first time a post is published
- How to update/add child posts meta whenever the parent post meta is updated?
- Custom filter from post meta
- How to query post with meta?
- Using a comma instead of a pipe to separate metadata
- show user based on user_meta
- Meta keys won’t add using wp_insert_post
- Metaboxes in Loop
- Custom meta box data not saving
- Saving custom fields for WP_Query to retrieve
- Custom meta box not saving values of radio buttons in WordPress
- Twenty Twelve entry meta data – change and move
- Humanmade | Custom meta box class: How to display a repeatable meta box group?
- How can I prevent the post_modified column in wp_posts from being updated?
- WooCommerce wp_insert_post action firing on every save
- Sorting meta box values by start- and enddate and all dates in between
- Use an id on a button to update_post_meta in post
- Updating post meta and Meta Box plugin
- Custom Fields help
- WP-API : post_meta not updated… but have another entry
- Parse error thrown by get_post_meta [closed]
- How to get all the related ids without array?
- I am stuck between post meta function to call unique id
- Cannot read properties of undefined (reading ‘useEntityProp’)
- Search posts by meta key in admin and front
- sanitize meta input