You decide which snippets go into the Scripts Organizer library for one-click import. Every snippet below is tested and ready; it moves into the library when it collects 10 votes. One vote per snippet per person.
19 snippets up for a vote, page 1 of 2.
Add Tailwind v4 to a WordPress Block Theme Without a Plugin
Integrate Tailwind v4 with a WordPress block theme without a plugin: theme.json colors as Tailwind classes, scanned templates, styles in the editor.
Snippet poll. Should this snippet be in the Scripts Organizer library for one-click import? 10 votes put it there.
1 of 10 votes
WordPress Nonce Verification Failed? Log the Real Cause
WordPress nonce verification failed? Log every failed nonce with its action, user, request and likely cause: expired, cached page, missing action.
Snippet poll. Should this snippet be in the Scripts Organizer library for one-click import? 10 votes put it there.
0 of 10 votes
Add a Post Type Archive to a WordPress Menu
Add any custom post type archive to a WordPress menu from its own box in Appearance > Menus, and keep it highlighted on single posts.
Snippet poll. Should this snippet be in the Scripts Organizer library for one-click import? 10 votes put it there.
0 of 10 votes
Your Site Doesn’t Include Support for the Block in WordPress
Find every WordPress post, template and pattern that shows "Your site doesn't include support for the block", with one Tools page and edit links.
Snippet poll. Should this snippet be in the Scripts Organizer library for one-click import? 10 votes put it there.
0 of 10 votes
Trace Actions in WordPress Action Scheduler to Their Source
Log the file, line and function that scheduled each WordPress Action Scheduler action, so you can see who queued it in WooCommerce's Scheduled Actions.
Snippet poll. Should this snippet be in the Scripts Organizer library for one-click import? 10 votes put it there.
0 of 10 votes
Lock the Publish Button but Allow Save Draft in WordPress
Lock the Publish button in WordPress until a featured image is set, while Save Draft keeps working. Enforced in the editor and the REST API.
Snippet poll. Should this snippet be in the Scripts Organizer library for one-click import? 10 votes put it there.
0 of 10 votes
PHP 8 Attributes Example: Register WordPress Hooks
A PHP 8 attributes example for WordPress: put #[Dpc_Hook] on class methods and one small registrar wires every action and filter for you.
Snippet poll. Should this snippet be in the Scripts Organizer library for one-click import? 10 votes put it there.
0 of 10 votes
Tailwind v4 Design Tokens From WordPress theme.json
Generate Tailwind v4 design tokens from WordPress theme.json presets, so bg-primary and text-large use the same CSS variables as the block editor.
Snippet poll. Should this snippet be in the Scripts Organizer library for one-click import? 10 votes put it there.
0 of 10 votes
WordPress Enqueue Script Example for wp-scripts Builds
A WordPress enqueue script example for @wordpress/scripts builds: reads index.asset.php for dependencies and version, loads CSS, RTL and JS translations.
Snippet poll. Should this snippet be in the Scripts Organizer library for one-click import? 10 votes put it there.
0 of 10 votes
WordPress theme.json Button Hover, Focus and Active Styles
Add hover, focus-visible and active states to every WordPress block theme button through theme.json data, without editing the theme's files.
Snippet poll. Should this snippet be in the Scripts Organizer library for one-click import? 10 votes put it there.
0 of 10 votes
