WordPress boilerplate.
Generated.
34 generators that write standards-compliant PHP for your theme or plugin. No dependency to install, nothing to keep updated.
34 live · 4 planned
Every generator
Pick one, fill in the fields, take the PHP. Nothing is behind a signup.
Add Theme Support GeneratorNEW01Admin Bar GeneratorNEW02Admin Notice Generator03Child Theme Generator04Comment Query GeneratorNEW05Cron Job Generator06Custom Post Type Generator07Custom User Profile Fields08Dashboard Widget Generator09Elementor Plugin Generator10Google Fonts Loader GeneratorNEW11Hook Generator12Login Form Generator13Menu Generator14Meta Box Generator15Post Status Generator16Settings / Options Page GeneratorNEW17Shortcode Generator18Sidebar Generator19Term Query GeneratorNEW20User Query GeneratorNEW21User Role Generator22WordPress Plugin Header Generator23WordPress Query Loop GeneratorNEW24WordPress Register / Enqueue Scripts (JS)25WordPress Register / Enqueue Styles (CSS)26WordPress Register Image Size27WordPress Tax Query GeneratorNEW28Wordpress Taxonomy GeneratorNEW29WordPress Term Meta GeneratorNEW30WordPress Theme Header Generator31WordPress User Contact Methods GeneratorNEW32WordPress Widget GeneratorNEW33WordPress WP Mail Function Generator34
php · copy · save
This is what comes out
Generated by the same functions the tool pages run. Nothing here is a mockup.
function wps_release_notice() {
$message = __( 'Settings saved.', 'wp-skills' );
$type = 'success';
$dismissible = true;
$classes = 'notice notice-' . $type . ( $dismissible ? ' is-dismissible' : '' );
printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $classes ), esc_html( $message ) );
}
add_action( 'admin_notices', 'wps_release_notice' );
Three steps
There is no fourth.
1. Pick a generatorTwenty-one of them, indexed above. No account, no install, no configuration.
2. Fill the fieldsThe PHP is rewritten as you type, beside the form. What you see is the whole output.
3. Copy or savePaste it into your theme or plugin. Sign in and the snippet is kept, editable later.
Why generate it
Standards-compliant PHPEscaped output, text domains, and the hooks WordPress actually documents — the boilerplate you would have written carefully, written quickly.
Nothing to installThe output is source. There is no plugin sitting in your site, no version to keep current, and nothing to remove later.
Your snippets, keptSave any of the 34 generators' output to your account, come back, and edit the fields rather than the code.
12 answered