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
- Check if Post Title exists, Insert post if doesn’t, Add Incremental # to Meta if does
- Meta compare with date (stored as string) not working
- How to update/insert custom field(post meta) data with wordpress REST API?
- How do I remove all the metaboxes for a custom post type?
- Change meta tags programatically
- Front-end update_post_meta snippet displays white screen?
- How to get meta value in wp_attachment_metadata
- Clean up output added via wp_head()
- Create meta boxes that don’t show in custom fields
- Get post from meta_key and meta_value
- get_post_meta returns bool(false)
- Explanation for remove_filter used in the below code [closed]
- How to get custom post type to display post meta on archive pages?
- How to use post_id with a Class?
- INSERT ON DUPLICATE KEY UPDATE failes in postmeta table
- Using WYSIWYG In custom meta boxes
- Set Checkbox as checked by default
- Create Multiple File Upload Metabox in WordPress
- Add a Save Button to Custom Meta Box [duplicate]
- replacing the_autor or make callback
- Some post meta fields stop saving after a few successful saves
- Save an array of values in the post meta box
- Undefined index error in custom post metabox
- get_post_meta() empty in preview WHEN custom post is published [closed]
- Add Embed.ly API objects to post_meta on update
- Editing does not change post_name
- Compare string with post id in wpdb and do stuff when match is found
- $wpdb class updating meta_value using Ajax [closed]
- How to selected which tags to print, instead of printing the whole tag list?
- query posts and split meta information into separate div’s
- add unique string as custom-field to every post
- How do I insert a new meta key / value pair, but only if another meta key is present?
- Move Title and the Content WYSIWYG editor position
- “Cannot use import statement outside a module” JS error while adding a custom meta block?
- Gutenberg featured image checkbox – checkbox not correctly set on editing page reload
- How to properly use oneOf and anyOf in Rest Schema?
- Get the author meta adds now
- show ad after # paragraphs
- If ACF meta_key has meta_value
- Show value of select dropdown in meta box
- Unable to Call More than One Meta Box Output
- Image not showing using a custom function and get_post_meta
- Add a class to post_class if more than one post shares same meta_value_num
- How we can get “get_post_meta” of specific user who added it
- Function to return values from metabox
- Repeated nav bar queries failing to be cached
- Add a meta field to the list of results for a custom post type
- Randomizing Post Links Outside of Loop – No Author or Date
- help to decipher wp metadata
- Insert Custom Field Value
- Why is $_POST empty when saving custom Meta Box?
- SQL query – get a featured image’s alt / alternative text
- update_post_meta() updating nested array in Multidimensional array with empty sub-array
- How do I list taxonomies that have upcoming events in WP? Is there a way to do this without having to query posts first?
- Strict comparisons problem when using boolean post meta
- Why is the actual number of thumbnail images not matching what is store in an attachments metadata?
- Set class if a meta value is set within post archive
- Combine meta query and give a specific meta query a higher priority
- Get table parameter and save in meta value
- How can i show post views using specified post ID?
- Allow HTML in Custom Metabox area
- How to add/update post meta to use in query?
- Custom field metabox not showing in back-end
- gettext localization is not working
- Move Entry Meta Above Title in Archives (Genesis + Brunch Pro)
- Grab meta data before post is saved
- Exclude category from DB query
- How to sort by meta value num, but ignore zero value?
- Only allow one meta key value per post in a category
- Create a Gallery and update Post Parent of Attachment Images
- Update event post meta each day automaticaly
- Advanced Custom Field — grabbing post_meta from previous post
- Fetch post meta data on POST request
- Which query method to use? (edit- wpdb syntax problems)
- How to update post meta with xml data
- How to display meta box data using “Meta boxes as needed”
- Allow iframe in custom meta box
- wp_postmeta store multiple values in one key [closed]