bluecadet / bluecadet-wp-utils
Bluecadet utilities for WordPress. Timber Helpers, CPT and CT registration, and more.
Installs: 58
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 1
Type:wordpress-plugin
Requires
- composer/installers: ^1.0
This package is auto-updated.
Last update: 2024-10-09 07:29:18 UTC
README
- Create custom post types and custom taxonomies via plugin (instead of the Theme)
- Adds Google Analytics field to admin settings, outputs script in wp_head if option is set
Post Types and Taxonomies
Add post types to the Register_CPTs
function in the PostTypes
class in lib/src/PostTypes.php
.
Add taxonomies to the Register_Taxonomies
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 wp_head
, and only
be printed if a user is not logged in.
Timber Helpers
print(some_var)
orkint(some_var)
: A Drupal ksm/kint style print of variables