bluecadet/bluecadet-wp-utils

There is no license information available for the latest version (1.0.0) of this package.

Bluecadet utilities for WordPress. Timber Helpers, CPT and CT registration, and more.

Maintainers

Package info

github.com/bluecadet/bluecadet-wp-utils

Type:wordpress-plugin

pkg:composer/bluecadet/bluecadet-wp-utils

Statistics

Installs: 59

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

1.0.0 2020-01-08 21:07 UTC

This package is auto-updated.

Last update: 2026-03-09 10:17:33 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) or kint(some_var): A Drupal ksm/kint style print of variables