I’m assuming you’re asking how to remove the first action, which the plugin has created?
Removing an action is really easy – all you need to do is call remove_action
like this:
remove_action("admin_init", "backend_plugin_css_scripts_mail_bank");
Then add your replacement action.
You need to ensure that you remove the action after it has been added (because otherwise there’s nothing to remove!) and before the admin_init hook runs (otherwise the action you wanted to remove would have already run). For further information on which hooks run in which order, you can see https://codex.wordpress.org/Plugin_API/Action_Reference (or Google for another appropriate reference).
Related Posts:
- Edit page header on a custom plugin
- 404 errors when updating options in admin dashboard
- Can we hide a certain user in WP?
- Add custom WordPress admin page with pretty url via code
- Disable default posts (Posts,Pages,Comments and Media) in wp-admin
- AdBlock blocks my non-advertising sidebar images [closed]
- How to display content depending on the Woocommerce Product Category
- Adding a Taxonomy Filter to Admin List for a Custom Post Type?
- is_plugin_active function doesn’t exist
- Proper Way to Modify Plugin
- How to edit a wordpress plugin without break its update process
- Looking for a Table of Contents (TOC) plugin for WordPress
- WordPress Plugin Development In MVC Architecture, How?
- Where should I use get_option in a plugin
- Removing an admin page added by a 3rd party plugin. Gravity forms in this example
- GPL and plugins
- Disable Specific Widgets on Selected Pages of a WordPress Website?
- Custom admin column disappearing when using Quick Edit [duplicate]
- Create page when plugin is activated
- How to show custom message once on plugin activation?
- Post source link plugin – small modification
- How to add users roles dropdown in registration in wordpress
- wp_schedule_event / cron_schedules – custom recurrence time not working in Plugin
- How to load a new template page according to a particular URL?
- how to not show plugin in admin area
- WordPress network: set themes and plugins for new blog
- How to edit plugin’s html? [closed]
- Getting “Fatal error: Call to undefined function wp_cache_get() in option.php” after updating a cache plugin [closed]
- Can a plugin add to header/footer/body content?
- Edits to plugin not taking effect
- Organising the plugins folder in wordpress
- Weird problems after recovery from security breach
- force customers to add only single item to card per purchase EDD [closed]
- Preventing BFA in WordPress without using a plugin
- Output HTML only on individual post view
- Manually add order item with fixed product_id in WooCommerce
- ‘Customize’ button in admin bar for CSS
- Auto delete WordPress users according to time
- 404 Error on Activate / Deactivate Plugin
- Why isn’t admin_notices displaying my text? [Simple Plugin, Beginner]
- How to show Recent Page instead of Post?
- All Users > User List > Update User Meta Field Inline
- How would I go about creating a user ranked post popularity page?
- How to hide some section in WordPress under Post
- Overide plugin files from child theme (/inc/ ) folder
- Polylang : Interverting languages after development [closed]
- External Domain on WordPress Multisite
- Add ALT attribute to Pin It Button image to pass HTML5 validation
- Customize The Events Calendar to Include an Option to Expand for More Events Listings
- changing posts layout in ultimate member profile plugin
- How do i get file_get_contents to work in wordpress
- Plugin Development – Functions or Hooks?
- Add some fileds to the wp_posts table
- Add filter on html tags,attributes on specific function in wordpress
- Overriding an Array in a Plugin’s Class/Function from functions.php
- Change the layout of action links under the plugin names
- getting notifications about updates only in the “core” page
- Change Header (Logo) Based on Login
- Why are plugin settings not all nested in one place?
- How can i summerize posts or news automatically in word press site?
- wp_mail – using a custom field value
- How to fix these PHP Warnings with the “Feed JSON” plug-in?
- Custom content plugin for front page in wordpress
- How to hide featured images of all posts falling under the same category in wordpress?
- Give custom page template a custom post ID
- Calling PHP function with AJAX
- Making a list that can be filtered by category/tags
- how to change a static testimonials into dynamic
- Rename a folder via HTML POST request
- How can I add a custom Javascript snippet to display my feedback in footer?
- My wordpress local urls is still displayed even moved to live
- working code, not working – Plugin Dev
- Cannot view Custom Post Type no matter what I try
- WordPress Admin login redirect to homepage
- Custom shortcode being shown in WPBakery backend rather than the block
- Issue calling my functions on Plugin activate in WordPress
- User upload dashboard
- How to restrict the user from viewing comments but with option to write comments?
- Create dynamic / data driven pages in wordpress
- custom/automatic export function – one post at a time?
- The etiquette of forking a plugin and table tag
- Custom SportsPress list
- Continous audio play in pages
- How to restrict “too soon” downloads with a general rule?
- Confusing problem with displaying message recipient metadata
- Display Powerpress media url
- Hide some shortcodes on posts from back-end
- wp-admin will not redirect to wp-login.php
- Getting 404 page not found error while trying to access add new plugin / themes
- getpost content with all formatting for admin pages
- Plugin (smart archives reloaded) crashed site / no access on admin panel
- Add a filter to a different custom plugin
- ERROR: Cookies are blocked due to unexpected output – no access to FTP
- Ajax in wordpress [duplicate]
- Notifications Bar on home page only
- Does anyone have the Custom Post Permalinks plugin from John P. Bloch? [closed]
- List all posts in a particular page [closed]
- Create Custom Coupon Type
- WordPress website is redirecting on some different shopping page
- Using ACF to allow user to add and edit multiple saved forms