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
- All Users > User List > Update User Meta Field Inline
- Removing customise fields during plugin uninstallation
- Edit Yoast SEO breadcrumbs output [closed]
- What’s the best way to implement AJAX in WordPress?
- How to Create a Custom Panel and Fields in Post Page [Plugin]
- Translating long texts with html formatting
- Rotating background images with admin options
- Is there an easy way to flag posts in the admin area?
- How would I go about creating a user ranked post popularity page?
- Show an image in my header.php
- Anonymous Postings
- Do widget options need to be escaped widget()?
- Is there any W3C compatible Share & Follow plugin?
- Does any one have Idea to get these functionalities with the plugin wp-multi-network
- How to hide some section in WordPress under Post
- Default WordPress WP Editor removing style tags and html tag
- Disable woocommerce cookies and delete cart data automatically
- className not populating in custom block
- How to fetch products with the price in a page on woocommerce using a form or live search with php
- Run plugins only on certain pages
- Overide plugin files from child theme (/inc/ ) folder
- wp_generate_attachment_metadata is creating an empty array
- custom payment gateway in woocommerce failed to connect to remote api server
- Display encrypted content on my website
- Post category with counts been display like a menu
- Post custom Data value in The Events Calendar plugin [closed]
- Send reply with pre-prepared answers
- Facebook Messager Plugin
- Best way to maintain and update 3rd-party WP plugin when developer is unresponsive?
- Save custom attributes of product in woocommerce
- Calling an attribute from a plugin shortcode
- Polylang : Interverting languages after development [closed]
- Best place for short bio,image and button [closed]
- Use of Templates in a Plugin
- Why can’t I access my Intranet LDAPS with NADI?
- External Domain on WordPress Multisite
- In the archive widget, how do I sort in between two years?
- Is it possible make a back-end for WordPress with WordPress?
- Customization API for plugin development
- Fromcraft Plugin On click submit button [closed]
- creating a custom shop page display on archive woocommerce
- Create tabs in admin options page from custom post type loop
- Setup page on first login on multisite
- polylang + category/tag custom language link
- Anspress Customization: How to show logged in user votes on a single answer?
- Custom wordpress Theme and Plugin repository
- Automatic Updates Individual Plugins Not Working
- How do I make a child theme I made POST through a 3rd party plugin?
- Dynamic admin submenu
- How create Group Blogs based on user created Groups
- Remove ‘Check Compatibility’ from Plugins menu
- How to redirect users to their profile after they successfully edit their profile
- Custom table naming/access convention for multisite: $table_prefix vs base_prefix or other?
- Add ALT attribute to Pin It Button image to pass HTML5 validation
- date/time-picker and file upload (image) fields for custom fields (e.g. with more fields)
- Getting Theme element into plugins page editor in wp admin
- WordPress as web application base
- Customize The Events Calendar to Include an Option to Expand for More Events Listings
- URL rewrite of independent plugin?
- Plugin for users to create their own ads like Google Adsence
- GeoMashup plugin: how to customize cluster markers / icons? [closed]
- How do I apply style to each category of a list?
- Add category selection to custom post type (plugin)
- Add menu page issues (permissions & position)
- Redirect to another page using contact form 7? [closed]
- changing posts layout in ultimate member profile plugin
- “No Add Button” for me to customize my WordPress with themes and pluggins
- Translation plugin to translate another plugins
- Network activating; if ( !current_user_can( ‘manage_options’ ) ) locks me out…
- Login Customizer doesn’t change the background of the register form
- Cannot access my wp-admin after installing Gzip compression [closed]
- Inserting custom PHP script on homepage
- Add sub menu page in your plugin
- Creating Featured Content Boxes
- Integrating WP E-commerce plugin into custom theme
- Best practice for including plugin output in a template without using shortcode?
- Custom post types – remove default post supports through empty array?
- Basic gallery plugin suggestion [closed]
- Plugin settings won’t save changes
- a weird attribute on every html tag
- Is there any way to make myself an admin?
- Full list of registered scripts or styles, but from an admin options page
- How can I run a custom shortcode function on a live site and only run if the viewer is a specific machine?
- How to make multiple admin pages for one plugin?
- $wpdb update query in plugin only updating one column
- Contact Form 7 – Form name blank [closed]
- Locked out of admin panel after installing HC Custom WP-Admin URL [closed]
- How do i get file_get_contents to work in wordpress
- Custom widget doesn’t save values from dropdown box
- Plugin Development – Functions or Hooks?
- How can i force wp-admin to use 2-column dashboard layout? [closed]
- Plugin function inside custom plugin
- WordPress as template engine