mirror of
https://github.com/WenPai-org/wpslug.git
synced 2025-08-03 05:33:19 +08:00
Added the Plugin Update Checker library under lib/plugin-update-checker and integrated it into WPSlug_Core for automatic update checks. This enables update notifications and management for the plugin via a remote JSON metadata file.
29 lines
547 B
PHP
29 lines
547 B
PHP
<?php
|
|
namespace YahnisElsts\PluginUpdateChecker\v5p3\Vcs;
|
|
|
|
if ( !interface_exists(BaseChecker::class, false) ):
|
|
|
|
interface BaseChecker {
|
|
/**
|
|
* Set the repository branch to use for updates. Defaults to 'master'.
|
|
*
|
|
* @param string $branch
|
|
* @return $this
|
|
*/
|
|
public function setBranch($branch);
|
|
|
|
/**
|
|
* Set authentication credentials.
|
|
*
|
|
* @param array|string $credentials
|
|
* @return $this
|
|
*/
|
|
public function setAuthentication($credentials);
|
|
|
|
/**
|
|
* @return Api
|
|
*/
|
|
public function getVcsApi();
|
|
}
|
|
|
|
endif;
|