this can be done with the filter plugins_api
:
https://developer.wordpress.org/reference/hooks/plugins_api/
try this code :
add_filter("plugins_api", function ($plugins_api, $action, $args) {
if ("plugin_information" !== $action) {
return $plugins_api;
}
$pluginSlug = $args->slug;
if (... update available ...) {
$plugins_api = new \stdClass();
$plugins_api->name = $pluginSlug;
$plugins_api->version = "5"; // new version
$plugins_api->download_link = "https://server/directory/newVersion.zip";
$plugins_api->slug = $pluginSlug;
$plugins_api->sections = []; // sections of "view details" of update page when update is available
}
return $plugins_api;
}, 10, 3);
Related Posts:
- How to check if the product is in a certain category on a single-product.php in Woocommerce?
- Disable plugin / plugin action via theme
- Create a table in custom plugin on the activating it?
- How to eliminate weird 404 errors in wp-admin?
- How would you require and automatically download dependent plugins?
- Changing wp login url without .htaccess
- Simple form that saves to database
- How to call plugin path in JS?
- Create WooCommerce Product Category Programmatically
- Get Current user email as a return string value
- How to save Clicks of a download link button while it doesn’t matter if we refresh the page or again login/logout
- Publish Post After Click On A Link
- ‘Lazy loading’ list of posts with pagination
- remove filter which calls a public static function
- Replace existing pages with new pages, keep menu links
- gallery option is not available in media upload box in costum theme option page
- New post notification plugin [closed]
- How can plugins have their own pages?
- Exporting and importing my WordPress database, but none of the plugin settings are importing
- API for getting plugin core compatibility?
- Reusable functions and tools (Framework)
- Debugs/errors in oqey gallery
- Woocommerce disable shopping cart based on user roles
- Object Oriented Plugin not working
- How to use site_url() in Elementor [closed]
- wp_generate_attachment_metadata is creating an empty array
- WordPress Post Visibility Options for Frontend
- How do I go back to wordpress 3.5
- What are the Best Practises When Using AJAX in Plugin Development?
- Show Sitename on Yoast SEO Title tag [closed]
- Plugins in WP_Options but not Active
- Create a single website with 3 theme options in wordpress
- Check if user is on backend page
- How to get specific string/value from an array? php [closed]
- React error #231with Custom Blocks after upgrade to WP 5.5
- Background Music WP [closed]
- WordPress failing to update plugins
- Image tooltip enable/disable
- Error trying to update plugins
- Upload files to the plugin menu
- I can’t get blog posts into ‘featured areas’ on homepage
- do_action in conditional
- Show WordPress Plugin Menu(Admin) To Editor
- Call another page in forms
- How many MySQL queries per visit I should normally have?
- Attachments broken after giving WordPress its own directory
- Want to modify a Plugin – Tweetily – Can I make it tweet a Custom Field instead of Post Title?
- WordPress plugin with its own “site”/theme
- Multisite Plugin – Access options (wp_options) on child sites
- Chat support plugin? [closed]
- Problem enabling the user to edit Markdown and displaying the HTML output (WMD Editor plugin for WordPress)
- Displaying the facebook profile picture in the WP-FB AutoConnect widget?
- Trigger jQuery to add events after AJAX-loading table in admin plugin
- how does ‘init’ /’parse_request’ hook work for wordpress?
- Service status plugin
- How can I disable an attribute from a Gutenberg block included in a template via InnerBlocks?
- Why the internal link get converted into a comment?
- How to add gallery to post and make seperate album page with gallery link to post?
- Share login credential with QR code
- Shortcode do not return the right data in post
- Display pagination in reservation Plugin and and Print table as pdf
- Undeletable column in Posts
- Search in WordPress
- Performance considerations – postmeta table versus new table for custom posts with foreign keys?
- Content disappears when searching with Search & Filter plugin
- Fatal error: Class ‘RDTheme’ not found
- Avoid WordPress header bar when form submission using admin_post in the frontend
- How to fix shifting header after installing speed / cache plugins?
- PHP message: WordPress database error Deadlock found when trying to get lock
- Field salespeople task management
- Bootstrap carousel – Using shortcode inside enclosing shortcode
- Can’t manage plugins anymore
- ClassLoader.php issues after moving to a new host
- plugins break after moving wp-content folder
- How to populate a Mailchimp newsletter with latest events from WordPress plugin EventOn?
- Add Flatr button to Sharing option
- Change localization only for plugin
- How to get author developer link on plugin page
- wp_schedule_event need to deactivate plugin changing recurrance
- Show all posts of all categories but excluding a category on custom blog page with pagination of my theme
- ajax request not returning the result
- adding image in the header of my dev widget
- passing ‘&’ in return function of add_filter
- Is there going to an issue running different features of WP site in different subdomains?
- Session alternative for plugins (due to caching)
- WordPress 3.5 install error
- Is there a plugin that will override the “Error establishing a database connection” message? [closed]
- List all subpages hierarchically based on the currently viewed page, top ancestor levels included
- Plugin with custom domain
- Create New Admin Menu Section – Like how custom post type works, in a way
- Customize Multi-Column Tag Map to fetch specific post-type
- Fast Tranfering my WordPress site to another server
- woocommerce retriving category name as div class?
- Duplicating wordpress install issue
- Woocommerce add product variations block to my custom template
- WordPress error Fatal error: Uncaught TypeError: Argument 3 passed to Automattic :get_setting_for_feature() [closed]
- Form with response button after on table after submission
- Fatal error in wordpress
- how to add meta for order in woocommerce
- Increased max_upload_filesize, but still can’t upload plugin [closed]