Last active
December 2, 2019 04:59
-
-
Save mhige/767208d4e0a770a424a6008f8b5e2668 to your computer and use it in GitHub Desktop.
Wordpress更新通知ライブラリを走らせるPHP(plugin-update-checker)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// テーマの更新通知確認 | |
require 'plugin-update-checker-4.8.1/plugin-update-checker.php';// ←バージョンは自分のダウンロードしたやつに合わせてください | |
$myUpdateChecker = Puc_v4_Factory::buildUpdateChecker( | |
// ↓jsonファイルを置いた場所 | |
'https://example.com/theme-update.json', | |
__FILE__, | |
'minamino' // テーマの名前 | |
); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment