Generators

Search by function name, WordPress concept, or what you're trying to build. Everything runs in your browser — nothing is uploaded.

All generators
Sort
Core
Activation Hooks
register_activation_hook()
Activation, deactivation and uninstall routines that clean up after themselves.
Admin
Admin Notice
admin_notices
Dismissible notices scoped to screens, roles and transients.
Content
Block Pattern
register_block_pattern()
Register reusable block patterns and pattern categories.
WooCommerce
Cart Fee & Discount
WC_Cart::add_fee()
Conditional cart fees and negative-fee discounts on woocommerce_cart_calculate_fees, with a live cart totals preview.
WooCommerce
Checkout Fields
woocommerce_register_additional_checkout_field()
Extra checkout fields for classic checkout or the Blocks Checkout API.
Design
Child Theme
Template: parent-slug
Search wordpress.org for the parent theme and get a complete child theme — style.css, functions.php, theme.json — as a ready .zip.
Design
Color Tool
oklch()
Convert a color across ten models and generate ramps, harmonies, WCAG and APCA contrast, vision simulation and a UI palette.
Core
Cron Event
wp_schedule_event()
Scheduled events with custom intervals and clean deactivation.
WooCommerce
Custom Order Status
register_post_status()
A new wc- order status wired into the admin dropdown, bulk actions and status list.
Admin
Dashboard Widget
wp_add_dashboard_widget()
Dashboard widgets with capability checks and configuration callbacks.
Design
Default Theme Headers
register_default_headers()
Header image options bundled with your theme.
Design
Gradient Tool
linear-gradient()
Build linear, radial and conic CSS gradients by dragging stops on the canvas, or paste any CSS gradient to edit it. Alpha, OKLab blending, PNG and SVG export.
Core
Hooks
add_action() / add_filter()
Correctly signed callbacks with priority and accepted args.
Admin
List Table
WP_List_Table
Sortable, searchable admin tables with bulk actions.
Content
Meta Box
add_meta_box()
Editor meta boxes with fields, nonces and sanitised save handlers.
WooCommerce
My Account Endpoint
add_rewrite_endpoint()
A new My Account tab with its menu entry, content callback and query var.
Design
Nav Menu
register_nav_menus()
Menu locations plus the wp_nav_menu() call to output them.
Core
oEmbed Provider
wp_oembed_add_provider()
Register providers so bare URLs auto-embed.
WooCommerce
Order Query
wc_get_orders()
The HPOS-safe way to query orders by status, customer, date and meta.
WooCommerce
Payment Gateway
WC_Payment_Gateway
An offline or redirect-style payment gateway class with settings and process_payment().
Core
Plugin Header
Plugin Name:
The file header WordPress reads, plus a starter bootstrap class.
Content
Post Meta
register_post_meta()
Register typed post meta with REST support and auth callbacks.
Content
Post Status
register_post_status()
Custom statuses that show up correctly in the posts list and editor.
Content
Post Type
register_post_type()
Custom post types with labels, supports, rewrite rules and REST exposure.
WooCommerce
Product Fields
woocommerce_process_product_meta
Custom fields in the Product Data metabox, saved with a nonce and exposed to REST on request.
WooCommerce
Product Tab
woocommerce_product_tabs
Add or remove tabs on the single product page, with priority control.
Admin
Quicktags
QTags.addButton()
Buttons for the classic editor text tab.
Core
Readme Studio
readme.txt
Drag-and-drop editor for the plugin directory readme file, with a live listing preview.
Core
REST Route
register_rest_route()
Namespaced endpoints with args schema and permission callbacks.
Admin
Role & Capability
add_role()
Custom roles and capability maps, with a migration routine.
Core
Scripts & Styles
wp_enqueue_script()
Register and enqueue assets with deps, versions and conditionals.
Admin
Settings Page
add_menu_page()
Admin pages with tabs, sections and the Settings API already wired up.
WooCommerce
Shipping Method
WC_Shipping_Method
A shipping method class with settings fields and rate calculation, registered safely.
Content
Shortcode
add_shortcode()
Shortcodes with typed attributes, defaults and enclosing content.
Design
Sidebar
register_sidebar()
Widget areas with correct before/after markup for your theme.
Content
Taxonomy
register_taxonomy()
Hierarchical or flat taxonomies wired to any post type.
Content
Term Meta
register_term_meta()
Extra fields on taxonomy terms, including the add and edit forms.
Design
Theme Support
add_theme_support()
Feature flags for thumbnails, HTML5, editor styles and more.
Design
theme.json
theme.json
Block theme settings and style layers as valid JSON.
Admin
Toolbar Node
WP_Admin_Bar::add_node()
Admin bar menus and nested nodes with capability gating.
Admin
User Contact Methods
user_contactmethods
Extra contact fields on the user profile screen.
Design
Widget Class
WP_Widget
A full widget class with form, update and widget methods.
WooCommerce
WooCommerce Email
WC_Email
A transactional email class plus its HTML template, registered into the email settings.
Query
WP_Comment_Query
new WP_Comment_Query()
Comment queries by status, type, post and hierarchy.
Query
WP_Date_Query
date_query
Date ranges, relative windows and column targeting.
Query
WP_Meta_Query
meta_query
Meta comparisons with correct types and casting.
Query
WP_Query
new WP_Query()
Every argument the loop accepts, with the generated loop included.
Query
WP_Tax_Query
tax_query
Nested taxonomy clauses with the right relation operators.
Query
WP_Term_Query
new WP_Term_Query()
Fetch terms with hide_empty, ordering and meta clauses.
Query
WP_User_Query
new WP_User_Query()
Query users by role, meta, capability and search columns.
Core
wp-config.php
define()
Environment-aware config with salts, debug flags and memory limits.