A starter template for WordPress plugins, with autoloading, namespaces and object caching (where available).
wordpress-toolkit
0.4.0wordpress-toolkit
due to conflicts when multiple versions installedwordpress-toolkit
)translate
SECURE_AUTH_COOKIE
, AUTH_COOKIE
, and LOGGED_IN_COOKIE
if not definedis_ajax()
/prefix()
, CacheObject()
init to wordpress-toolkitnpm run zip-dev
to create installable ZIP including necessary development filesshow_notice()
to allow displaying notices in Network Admin; add additional CSS classes and element IDprefix()
wordpress-toolkit
get_wpsac_plugin_option()
example to Plugin classgulp rename
task (notes)wp-pot-cli
to create .pot
translation filenpm run zip
to package plugin as ZIP fileregister_uninstall_hook
to delete Carbon Fields settings when plugin uninstalledWPTK_DISABLE_CACHE
constantVERSION
constantUtils
class to Helpers
New pre-release that primarily fixed caching expiration bug.
plugin.json
for configuration (see Configuration & Constants)WP_ENCRYPT_KEY
constant (wiki)NB! This plugin requires that it be loaded in order for all features/examples to work. See Dependencies for more info.