YahnisElsts / plugin-update-checker

A custom update checker for WordPress plugins. Useful if you don't want to host your project in the official WP repository, but would still like it to support automatic updates. Despite the name, it also works with themes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Releases and Tags

hupe13 opened this issue · comments

Is it possible to ignore any releases and consider tags only?

Yes, you can use the vcs_update_detection_strategies filter to prevent PUC from looking at releases. Try something like this:

use YahnisElsts\PluginUpdateChecker\v5p3\Vcs\GitHubApi;
$updateChecker->addFilter('vcs_update_detection_strategies', function($strategies) {
 	unset($strategies[GitHubApi::STRATEGY_LATEST_RELEASE]);
 	return $strategies;
});

Thank you very much, it works.