mirror of
https://gh.wpcy.net/https://github.com/stingray82/uupd.git
synced 2026-07-14 18:21:23 +08:00
506 B
506 B
🧠 Dynamic Configuration (UUPD 2.0)
\UUPD\V2\UUPD_Updater_V2::register([ 'vendor' => 'my-company', 'plugin_file' => plugin_basename( FILE ), 'slug' => 'my-plugin', 'name' => 'My Plugin', 'version' => MY_PLUGIN_VERSION, 'server' => 'https://example.com/updates/', 'allow_prerelease' => get_option('my_plugin_allow_prerelease', false), ]);
Key change:
- vendor is REQUIRED
- config is now vendor-scoped internally