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:
- Is it dangerous to install unupdated plugins?
- Plugins not showing in Multisite dashboard
- How to create an archive page (with links) for a date range?
- Is there a way to remove a tooltip of a plugin via custom CSS? [closed]
- Custom PHP Page Using WordPress login
- Facebook ‘Share’ and ‘Like’ on individual posts
- Share plugins, themes, and multi post in a multidomain network
- WordPress cron job running more than once
- How to access a wordpress plugin page or add posts without doing it from the WordPress dashboard?
- Add image to post
- wp doesn’t recognize my plugin if I don’t login as WP user (or as WP Admin)
- Create Custom Coupon Type
- Text Wrapping in WPDataTables
- how to show selected options drop down menu values in attributes field in after saving post.php
- fatal erro in one line if statment in wordpress plugin [Solved]
- Add different sizes packaging boxes to orders plugin
- Can’t use updated variables in handle function
- Am having issues intergrating this api into my wordpress site, any help please?
- Social login authentication via wordpress rest api
- Multiple Post Thumbnails Not Returning URL for Background Image
- Shortcode to do math with url variables
- WordPress plugin header already sent
- How can I make my plugin detect if a certain theme is active?
- How to get URL param for pagination in shortcode?
- edit slider plugin capability for custom_role
- Plugin Block at the backend of every page or post
- Make plugin admin page visible to other roles
- Buffered output in chunks and shortcode – how do I achieve that?
- Transfer wordpress comments form on another post [closed]
- Achieve the following layout
- Change email notification language based on the site language in WPForms
- Relationship field only loads items to administrator
- Is it possible to create post in wordpress using postman?
- How does one add numbers to an admin menu?
- wp_enqueue_script doesn’t load JS in plugin
- AI Code For OpenAI
- How to Deobfuscate a sourcecop protected WordPress plugin?
- Is there any WordPress Plugin that provides video editing from front end side? [closed]
- Disappearing plugins
- Order custom post type by posts with most likes first
- WordPress website is redirecting on some different shopping page
- Pulsing circle before the post title (Breaking news flash)
- Adding fontAwesome to Primary Menu returns after saving the menu
- I start to make custom plugin but for some reason is not working, i get no error. Can someone help me? Thanks
- Is there a membership plugin which offers the ability to hide content based on css rules?
- How to add an active state class to my info box
- Using ACF to allow user to add and edit multiple saved forms
- How Create LastMod and Update Date Only on Taxonomy Category and Tags
- How To Convert External Image URLs To Own Website’s Uploaded Images Automatically?
- Getting 400 Error in wordpress website
- How can i store cache of wordpress a database request without plugins?
- disabled plugin and now wordpress won’t load
- How to provide page_template path in custom plugin using WordPress
- WordPress User Registration/ Sign Up -> Able to take Paid Certification Courses & keep track of Completed Certificates
- Prevent primary navigational menu from expanding during page load (WordPress / Astra Theme)
- Issues with creating user profile for a subscriber, but with different profile page and functionalities
- Block Root REST API Route using custom &/or iThemes
- How to set an exact search box in tablepress plug-in
- Private plugin updating – GitHub zip file changes the plugin directory (with release or branch name)
- WordPress custom block: Link saved in database not retrieved when editing post
- Accessing Correct Database to Create REST API Endpoint
- How do I replace a logo image that’s hard-coded into a plugin’s logo.php file?
- How to Order Posts by Taxonomy in Jetengine Plugin
- Detect if user is on the specific page in WordPress
- A multi-section WordPress store [closed]
- Schedule WordPress plugin activation and / or deactivation on a custom date and time, how to do?
- Read page- or post-content across different builder-plugins
- How to make WordPress Plugin run on single specific Admin Page
- update asset url on free slider revolution version 6.5.25
- Frontend Enqueued Files in the Backend
- Looking for an “animated hero” widget or tech on a WP site
- Remove posts that start with similar words (like a delete duplicate posts plugin)
- _sold_individually value change when add to cart
- How to get selected variation from URL?
- Why WP CLI command is not visible in VIP CLI
- Let a user change role dynamically on the front end
- Help with coding a link for a button in WordPress with The Events Calendar Plugin
- How to change css poperty through webhook in wordpress
- WP Crowdfunding login redirect fails
- How to use Rewrite Tag Parameters in URL-rewritten Page’s Titles (META & H1)?
- Difficult case to solve – Select + select = result(related data)
- How to disable display all posts from all categories?
- Custom Login and Password Reset for BuddyPress Website
- How to add a react element into the DOM node (only on the user-interaction like on click) without using the state?
- WordPress theme development – the template dropdown in Pages and disappeared
- Add custom button to the changeset status in the Customizer
- add custom filter to plugins page?
- Possible to issue a warning before plugin deletion (i.e., that tables will be deleted)?
- How to get next day date of a specific day
- Is there a WordPress plugin or solution that allows to set up forms with a total control over markup
- I have to select text from gutenberg editor. Purpose is to store and replace text
- Fatal error..can’t sign into my WP site to try and deactivate naughty plugins. Help!
- What forum plugin can I use to allow non-registered users to create posts and comment? [closed]
- White Screen of Death on WordPress Website
- How to verify/test that a custom built wordpress theme is as secure as possible?
- How is wp_admin_notice supposed to work?
- Draft standard post by ACF Data picker
- Change WordPress Username maxmimum length
- onSplit not create my custom block
- Widget saving but showing “waiting” animation [closed]