WordPress plugin intelligence profile

COP CSS Custom Post Type Lite

Adds a custom post type for implementing theme independent css.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 3.2
Current version0.2.0
WordPress coverageTested up to WordPress 3.2
Minimum stackWP 3.2.1 · PHP —
Directory statusactive
Last directory update14 Sept 201115y ago
Active installations10Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records COP CSS Custom Post Type Lite version 0.2.0 as active, updated 15y ago and tested up to WordPress 3.2.

Overview

About this plugin

Adds a custom post type of css that will compile all entries into a single minified css file that will automatically be enqueued to your site.

Minified CSS is stored in a transient for caching.

User now needs ‘edit_themes’ permission to see the css editor. By default this is only the administrator.

Shortcodes

Shortcodes are now processed during compilation of your css.

An new shortcode has been added called:

[meta key=”(name of arbitrary custom field)” post_id=”(optional)”]

This allows you to define a whatever custom fields you like on an individual css post and use them in your css.

Ex. a { color: [meta key=”my_color”]; }

So you can define common elements and use them throughout your css.

If you like you can use the option post_id to put those values from another post. So you can have one master css post with your primary colors and such and referance it in other posts.

Credits

com/css-minifier/

Notes on Function

All css is compiled on save unless the transient has expired. If which case a query is run to compile the css durning rendering.

I may add option to use either a wp_option or a transient based upon user preferance.

Css is compiled by menu_order. I would like to add more options for better sorting.

There is an options page that outputs the css into a textarea so that you can review the final css in the dashboard.

com

Future options may also include the ability to write your css to your theme directory. This plugin currently must be active to keep the css available.

I’m trying to follow the path of Mark Jaquith. Read more here.

How to Write a Plugin I’ll use

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • custom post type
  • css
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 3.2

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 3.2.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to3.2
Minimum requirementsWordPress 3.2.1 · PHP not listed
Update activity14 Sept 201115y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.