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