Data visionaries and multi-mediators, make any post sing with scripts and splendid with styles, all from within WordPress.
Author: | Barrett Golding (profile at wordpress.org) |
WordPress version required: | 3.5 |
WordPress version tested: | 4.9.4 |
Plugin version: | 1.0.0 |
Added to WordPress repository: | 20-06-2016 |
Last updated: | 21-02-2018
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | http://hearingvoices.com/tools/postscript |
Total downloads: | 1 449 |
Active installs: | 10+ |
Click to start download
|
Screenshots
Edit Post screen Postscript meta box
Settings Page: User Roles, Post Types, URls, and Classes
Settings Page: Tables of Added Scripts and Styles
Settings Page: Remove Scripts and Styles
FAQ
Installation Instructions
To install and use the Postscript plugin:
- Upload the
postscript
directory and content to the /wp-content/plugins/
directory
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to the Setting: Postscript options screen.
How do add registered script/style handles to the Postscript meta box?
The Settings > Postscript screen lists all available handles, those registered via the [wp_enqueue_scripts
hook])https://developer.wordpress.org/reference/hooks/wp_enqueue_scripts/} in your active theme and plugins and the defaults registered by WordPress itself.
You can add any registered script or stylesheet handle to the checkboxes in the Postscript meta box. The GitHub Dev Notes details on the inner workings of this plugin, including custom fields and taxonomies, transients, options, and filters.
How do I register scripts?
Your Scripts and Styles: You can register your own CSS/JS file handles with the wp_register_script() and wp_register_style() functions.
Default Scripts and Styles: WordPress auto-registers numerous styles and scripts via its core functions: wp_default_scripts() and wp_default_styles(). Each file gets its own unique handle: see the list of defaults.
What is a use case for this plugin?
Adding Thickbox to a post is an example of what this plugin does. WordPress ships with a modified ThickBox jQuery library, used to make modal lightbox windows. The add_thickbox() function enables this feature. When enabled, though, Thickbox’s CSS and JS files load on every Post, whether the post needs it or not.
This plugin improves site performance by enqueuing scripts only when specifically requested for an individual post, via the Postscript meta box. See the screenshots.
How can I contribute to Postscript?
Postscript is now on GitHub. Pull Requests welcome.
How can I translate Postscript?
This plugin is internationalized (default: English). Please contribute a translation in your language.
The WordPress.org Polyglots Team maintains a comprehensive Translator’s Handbook. All text strings in this plugin are localized, following the guidelines of the WordPress.org Plugin Handbook’s Internationalization section.
Credits
This plugin was developed as part of a Reynolds Journalism Institute fellowship.
ChangeLog
1.0.0
Release Date: February 20, 2018
Bugfixes:
- Fixes taxonomy term deletion when no terms checked.
- Removes Postscript taxonomies from Dashboard menu links.
- Removes Postscript taxonomies from Dashboard: Appearance: Menu checkboxes.
- Removes Postscript taxonomies from Quick Edit checkboxes.
- Removes Yoast SEO plugin “Make Primary” button on Postscript taxonomies.
0.4.7
Release Date: July 30, 2016
Beta version, first in WordPress Directory:
- Adds whitelists for hostnames and extensions of unregistered URLs.
- Changes custom taxonomy slugs to ‘postscripts’ and poststyles’.Fix
- Tests upgrade option function based on version number.