A library that contains classes to carry out WordPress related tasks.
- Create a composer file inside the directory you are creating with this as a starting point:
- CD to that directory
- Create a file called composer.json and use this JSON as a starting point:
{
"name": "PROJECT_NAME",
"version": "1.0.0",
"minimum-stability": "dev",
"repositories": [
{
"type": "vcs",
"url": "https://github.com/csaborio001/scorpiotek-wp-util"
}
],
"require" : {
"scorpiotek/wp-util": "dev-master"
}
}
-
Save the file.
-
Run composer update
-
From your theme's functions.php file, include the file:
/vendor/scorpiotek/autoload.php
- Changed everything to use roles instead of capabilities.
- Rewrote the whole logic and used a code sniffer.
- Changed old references to old error function to simply use error_log.
- Changed the library to be a composer package instead of a WordPress plugin.
- Included first version of class AdminMenuModifier