Bluecadet Utils
Various utilities for Bluecadet projects.
★ 0stars
59composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/bluecadet/bluecadet-wp-utils/archive/refs/heads/master.zipAlso on Packagist as bluecadet/bluecadet-wp-utils:
composer require bluecadet/bluecadet-wp-utilsFrom the readme
Bluecadet Utils
- Create custom post types and custom taxonomies via plugin (instead of the Theme)
- Adds Google Analytics field to admin settings, outputs script in wphead if option is set
Post Types and Taxonomies
Add post types to the RegisterCPTs function in the PostTypes class in lib/src/PostTypes.php.
Add taxonomies to the RegisterTaxonomies function in the Taxonomies class in lib/src/Taxonomies.php.
The LabelMaker class can be used to quickly produce labels for both Post Types and
Taxonomies (see lib/src/LabelMaker.php).
Google Analytics
Plugin adds a field to Admin Settings General, where an admin can enter a Google
Analytics id number. If the field has a value, it will be loaded into wphead, and only
be printed if a user is not logged in.
Timber Helpers
- print(somevar) or kint(somevar): A Drupal ksm/kint style print of variables
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| 1.0.0 | Jan 8, 2020 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.