I think best way to do this is via actions and filters, like we extend WordPress core itself.
Other options is like @helgatheviking pointed, if plugin is class you can extend it.
Unfortunately not all plugin developers provide useful filters and actions with their code, most often plugin isn’t written in OOP manner. Only way to save your modifications on plugin update, is to create copy of original plugin, change plugin name. I usually prefix original name e.g. Mamaduka Twitter Connect
, but with this solution you’ll need to manually update original plugin’s code.
If you think that plugin needs more filters/action, you can contact the author and ask him to include those hooks into the core.
Related Posts:
- How to implement WordPress plugin update that modifies the database?
- Update plugin from personal API
- Customize plugin update “new version is available” text
- plugin wants to update to wrong plugin
- Plugin child folder?
- Display update notification messages like ‘What’s New’
- get 404 when accessing wp-admin/plugin-install.php
- How to test ‘upgrader_process_complete’ hook in plugin development?
- Redirect to another page using contact form 7? [closed]
- How to add update function to plugin without adding it to https://wordpress.org/plugins/ [closed]
- How to prepare (compress/zip) a plugin to enable updating instead of adding new instance?
- Custom Plugin Update
- Update a previous version of plugin when the new plugin is built from the scratch
- Custom plugin which downloads updates from custom endpoint, extracts new version zip into a new name
- How to include a custom thumbnail with my WordPress plugin?
- How to update changes to multiple sites at the same time
- How to Enfroce Domain Licensing Limits? [closed]
- How to Replicate Elementor Licensing Model
- how to update wordpress plugin programmatically using plugin path
- Creating a WordPress admin page without a menu for a plugin
- fatal error get_page_permastruct()
- Common functionality between my own plugins
- How to pass JavaScript variable to PHP in wordpress widget?
- Unable to add admin notice on plugin activation
- How To Ignore a Filter On Applying Filter the Content In a Function
- Which functions in theme or plugin load first
- Adding Image in readme.txt file of wordpress plugin
- Add CSS animation as Preloader to WordPress
- Pass $this to function nested in another public function of the same class
- remove custom taxonomy metabox form custom post type
- $wpdb->get_results() does not fetch results with unicode ‘WHERE’ clause
- Way to hook into a sidebar call to replace it with a custom sidebar
- Custom height/width for thickbox in WP Backend
- add action wp_head not working
- Can I upgrade plugins via FTP?
- How to trigger an action with a URL
- WP Plugin Developers – Accessing my wordpress site [closed]
- Next and/or previous post content
- How to periodically scrape and cache strings from remote txt files. – My First Plugin
- Is it possible to create Custom Post plug-in?
- why doesn’t this update part of this plugin work? it take me to nothing here page
- Using a custom plugin to capture input data via Ajax and PHP
- Display post lists in 2nd paragraph
- Single API call exposed via shortcode with params
- Session destroyed on page redirect
- Is there a way to test that readme looks in other language before submitting translation?
- What would I need to write into a custom plugin in order to add a switch for a custom string of CSS to the edit page?
- Create tabs in admin options page from custom post type loop
- ob_start() combined with wp_query
- How can I remove the WordPress-Version (?ver=5.x) from my plugin
- Settings API saved values not getting shown in the dropdownbox
- populating a form field with output from a custom plugin function
- Custom Login Page — wp_signon Headers Already Sent?
- Why Does The `auto_update_plugin` Hook Disable Management?
- Is there a way to add custom endpoint to specific page only
- IF condition based on wp_remote_get output
- Add User Role: Pre-saved in User-Meta [SOLVED]
- Add_rewrite_endpoint doesn’t work with post name permalink structure
- Is there a script to collect all hooks and filters provided by a plugin?
- How WordPress core manage the plugin installation
- Why is my WordPress Plugin page requesting my FTP Login Credentials?
- Cross Sells are not being shown in Cart Page. Please Help!
- Post status doesn’t update to ‘future’ every time?
- adding custom code as a wordpress plugin
- Cannot add edit themes and add plugins after multisite update
- count the number of views of a post excluding own views
- Remove updates text on plugin or themes list page
- How To Create A File Archive in WordPress?
- What would make the plugin update process to complete but don’t report as such?
- Custom Post Type, Custom Columns List
- How to set Google Analytics tracking code on WordPress plugin directory page?
- How to add styles to a submenu page?
- Show Custom Post on Frontend
- Problem with checked box on wp car manager plugin
- Create a link that calls our custom function in WordPress
- WordPress Ajax request “Failed to load resource: the server responded with a status of 400 ()”
- WP core and plugin updates fail AWS
- Load my Inline js footer area
- Remove action added in plugin class from theme
- wc_get_product_terms() throws “Notice: Undefined offset: 0”
- Woocommerce list variations that are added already to cart in Single Product
- Plugin json page
- WordPress Admin sub-level menu issue
- How do I add a textarea (multirow) option to my WordPress plugin?
- Passing ajax variable to more than one wordpress plugin function
- search into subcategories plugin subcategory value not come
- Why isn’t my plugin seeing other classes?
- How Can the_post Be Hooked Like the_content and the_excerpt?
- How to add jquery to my custom post type wp plugin
- Update post meta not working on wp_postmeta
- How to tell which Plugin is displaying?
- Check if user is in a group of another site within multisite network [closed]
- Redirect url in plugin to somewhere else?
- Get Core Functionality from Within a (Secondary) Plugin File
- wp_insert_post_data filter to set category
- is there a way I can add or remove some plugin options?
- How to provide access to specific plugin to all the user roles except subscriber in wordpress
- Output pure JSON wordpress
- What can I do to customize a widget provided with this plugin? from where have I to start?
- how to remove a rel=”nofollow” using call to action plugin