Plugin Update Checker
=====================
This is a custom update checker library for WordPress plugins. It lets you add automatic update notifications and one-click upgrades to your commercial and private plugins. All you need to do is put your plugin details in a JSON file, place the file on your server, and pass the URL to the library. The library periodically checks the URL to see if there's a new version available and displays an update notification to the user if necessary.
From the users' perspective, it works just like with plugins hosted on WordPress.org. The update checker uses the default plugin upgrade UI that will already be familiar to most WordPress users.
[See this blog post](http://w-shadow.com/blog/2010/09/02/automatic-updates-for-any-plugin/) for more information and usage instructions.
Getting Started
---------------
### Self-hosted Plugins
1. Make a JSON file that describes your plugin. Here's a minimal example:
```json
{
"name" : "My Cool Plugin",
"version" : "2.0",
"author" : "John Smith",
"download_url" : "http://example.com/plugins/my-cool-plugin.zip",
"sections" : {
"description" : "Plugin description here. You can use HTML."
}
}
```
See [this table](https://spreadsheets.google.com/pub?key=0AqP80E74YcUWdEdETXZLcXhjd2w0cHMwX2U1eDlWTHc&authkey=CK7h9toK&hl=en&single=true&gid=0&output=html) for a full list of supported fields.
2. Upload this file to a publicly accessible location.
3. Download [the update checker](https://github.com/YahnisElsts/plugin-update-checker/releases/latest), unzip the archive and copy the `plugin-update-checker` directory to your plugin.
4. Add the following code to the main plugin file:
```php
require 'plugin-update-checker/plugin-update-checker.php';
$myUpdateChecker = PucFactory::buildUpdateChecker(
'http://example.com/path/to/metadata.json',
__FILE__
);
```
#### Notes
- You could use [wp-update-server](https://github.com/YahnisElsts/wp-update-server) to automatically generate JSON metadata from ZIP packages.
- The second argument passed to `buildUpdateChecker` should be the full path to the main plugin file.
- There are more options available - see the [blog](http://w-shadow.com/blog/2010/09/02/automatic-updates-for-any-plugin/) for details.
### Plugins Hosted on GitHub
*(GitHub support is experimental.)*
1. Download [the latest release](https://github.com/YahnisElsts/plugin-update-checker/releases/latest), unzip it and copy the `plugin-update-checker` directory to your plugin.
2. Add the following code to the main file of your plugin:
```php
require 'plugin-update-checker/plugin-update-checker.php';
$className = PucFactory::getLatestClassVersion('PucGitHubChecker');
$myUpdateChecker = new $className(
'https://github.com/user-name/plugin-repo-name/',
__FILE__,
'master'
);
```
The third argument specifies the branch to use for updating your plugin. The default is `master`. If the branch name is omitted or set to `master`, the update checker will use the latest release or tag (if available). Otherwise it will use the specified branch.
3. Optional: Add a `readme.txt` file formatted according to the [WordPress.org plugin readme standard](https://wordpress.org/plugins/about/readme.txt). The contents of this file will be shown when the user clicks the "View version 1.2.3 details" link.
#### Notes
If your GitHub repository requires an access token, you can specify it like this:
```php
$myUpdateChecker->setAccessToken('your-token-here');
```
The GitHub version of the library will pull update details from the following parts of a release/tag/branch:
- Changelog
- The "Changelog" section of `readme.txt`.
- One of the following files:
CHANGES.md, CHANGELOG.md, changes.md, changelog.md
- Release notes.
- Version number
- The "Version" plugin header.
- The latest release or tag name.
- Required and tested WordPress versions
- The "Requires at least" and "Tested up to" fields in `readme.txt`.
- The following plugin headers:
`Required WP`, `Tested WP`, `Requires at least`, `Tested up to`
- "Last updated" timestamp
- The creation timestamp of the latest release.
- The latest commit of the selected tag or branch that changed the main plugin file.
- Number of downloads
- The `download_count` statistic of the latest release.
- If you're not using GitHub releases, there will be no download stats.
- Other plugin details - author, homepage URL, description
- The "Description" section of `readme.txt`.
- Remote plugin headers (i.e. the latest version on GitHub).
- Local plugin headers (i.e. the currently installed version).
- Ratings, banners, screenshots
- Not supported.
没有合适的资源?快使用搜索试试~ 我知道了~
【WordPress插件】2022年最新版完整功能demo+插件v1.8.5.zip
共96个文件
php:36个
js:11个
css:11个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 185 浏览量
2022-04-01
05:50:42
上传
评论
收藏 351KB ZIP 举报
温馨提示
"【WordPress插件】2022年最新版完整功能demo+插件v1.8.5 WP Admin Pages PRO - Admin Pages The Way You Want WP Admin Pages Pro - Admin Pages您想要的方式" ---------- 泰森云每天更新发布最新WordPress主题、HTML主题、WordPress插件、shopify主题、opencart主题、PHP项目源码、安卓项目源码、ios项目源码,更有超10000个资源可供选择,如有需要请站内联系。
资源推荐
资源详情
资源评论
收起资源包目录
【WordPress插件】2022年最新版完整功能demo+插件v1.8.5.zip (96个子文件)
wp-admin-pages-pro
lang
wu-apc-fr_FR.mo 24KB
wu-apc-nb_NO.po 26KB
wu-apc-pt_BR.po 35KB
wu-apc-vi.mo 303B
wu-apc-pt_BR.mo 24KB
wu-apc-pt_PT.po 26KB
wu-apc-es_ES.po 35KB
wu-apc-pt_PT.mo 305B
wu-apc-vi.po 25KB
wu-apc-nl_NL.po 30KB
wu-apc-nl_NL.mo 13KB
wu-apc-en_GB.po 26KB
wu-apc-es_ES.mo 24KB
wu-apc.pot 28KB
wu-apc-fr_FR.po 36KB
wu-apc-de_DE.po 25KB
wu-apc-de_DE.mo 305B
wu-apc-en_GB.mo 308B
wu-apc-nb_NO.mo 308B
inc
class-wapp-pages.php 9KB
models
wu-admin-page.php 11KB
class-wu-divi-support.php 8KB
class-wu-separator-support.php 2KB
class-wu-addon-updater.php 9KB
class-wu-page-content-source.php 4KB
class-wu-admin-pages-list-table.php 16KB
class-wu-gutenberg-support.php 6KB
class-wu-beaver-builder-support.php 5KB
class-wu-oxygen-builder-support.php 8KB
class-wapp-pages-getting-started.php 1KB
class-wu-external-link-support.php 7KB
class-wu-page-content-source-page-builder.php 6KB
class-wu-admin-pages.php 63KB
updater
css
puc-debug-bar.css 1KB
composer.json 630B
plugin-update-checker.php 39KB
debug-bar-plugin.php 3KB
github-checker.php 13KB
debug-bar-panel.php 4KB
license.txt 1KB
js
debug-bar.js 2KB
README.md 5KB
class-wu-hide-page-support.php 3KB
class-wu-brizy-support.php 9KB
wu-apc-functions.php 4KB
class-wu-widget-support.php 4KB
class-wapp-admin-notices.php 3KB
class-wu-standalone-dependencies.php 3KB
class-wu-elementor-support.php 6KB
wp-admin-pages-pro.php 6KB
assets
css
wp-ultimo.min.css 31KB
wu-admin-page-creator-widget.css 789B
wu-admin-page-creator-template.css 2KB
wu-admin-page-creator.min.css 10KB
wu-admin-page-creator-widget.min.css 708B
wu-admin-page-creator-template.min.css 2KB
wp-admin-page-creator-missing-dashicons.css 1KB
wp-admin-page-creator-missing-dashicons.min.css 1003B
wu-admin-page-creator.css 13KB
wp-ultimo.css 40KB
img
badge.png 6KB
fonts
wpultimo.svg 2KB
wpultimo.ttf 1KB
wpultimo.woff 2KB
wpultimo.eot 2KB
js
_main.js 4B
plugins
wu-tabs.js 894B
admin
jquery.fonticonpicker.js 26KB
vue.min.js 84KB
tiptip.js 7KB
_admin.js 11KB
wu-admin-page-creator-admin.min.js 18KB
wu-admin-page-creator.min.js 0B
_external-links.js 376B
wp-admin-page-creator-external-links.min.js 268B
sass
wp-ultimo.scss 5KB
wu-admin-page-creator.scss 3KB
plans
advanced-options.scss 15KB
wp-admin-page-creator-missing-dashicons.scss 1KB
_fonts.scss 364B
plugins
admin
fonticonpicker.scss 9KB
tiptip.scss 2KB
wu-admin-page-creator-template.scss 2KB
_bootstrap.scss 18KB
wu-admin-page-creator-widget.scss 1KB
views
admin-pages
admin-page-advanced-options.php 10KB
list.php 2KB
template-selector.php 3KB
edit-admin-page.php 29KB
notices
notices.php 196B
meta
getting-started.php 5KB
settings.php 483B
template
dashboard.php 1KB
page.php 3KB
readme.txt 7KB
init.php 835B
共 96 条
- 1
资源评论
Lee达森
- 粉丝: 966
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功