Term Meta Generator
Add fields to a taxonomy term: the add and edit forms, the nonce, the save with its capability check, and register_term_meta with a sanitize callback.
add_action( 'category_add_form_fields', $cb );term meta →Register the things a site is made of — post types, taxonomies, statuses, shortcodes and meta — with the arguments right the first time.
Add fields to a taxonomy term: the add and edit forms, the nonce, the save with its capability check, and register_term_meta with a sanitize callback.
add_action( 'category_add_form_fields', $cb );term meta →Adds fields to the user profile through user_contactmethods, with the escaping the output needs and the removal of the defaults WordPress no longer uses.
Profile fields, stored as user metaWP Users →Generate an add_shortcode() handler with typed attributes, shortcode_atts defaults, escaped output and an optional enclosing form.
[my_plugin_button label="Buy"]init hook →Registers an oEmbed provider WordPress does not know about, with the URL pattern, the regex flag people get wrong, and a note on where the result is cached.
URL pattern → endpoint, regex or wildcardoEmbed →Generate register_post_status() code with the label, visibility flags and the admin list counts WordPress shows for a custom status.
register_post_status( 'archived', $args );init hook →Generate a WordPress meta box: the fields, the nonce, a save handler with its autosave and capability checks, and the meta registration REST needs.
add_meta_box( $id, $title, $cb, 'post', 'side' );post meta →Generate register_taxonomy() code with labels, the post types it applies to, hierarchy, REST support and rewrite rules.
register_taxonomy( 'genre', 'book', $args );init hook →Turn WordPress comments off properly: close them on old posts, hide existing ones, drop the admin menu, and close the REST and XML-RPC routes.
add_filter( 'comments_open', '__return_false', 20 );comments →Generate register_post_type() code with labels, supports, REST and rewrite settings.
register_post_type( 'book', $args );init hook →A complete installable plugin for a post type: every label, optional taxonomies, and an activation hook that registers before it flushes so singles do not 404.
register_activation_hook( __FILE__, … );init + activation →Generate valid, ready-to-paste WordPress code in seconds without configuring a local runtime.
Your input is never uploaded
No submit button, no waiting
Copy, download or share a link
Built by Pixarlabs for WordPress
Clean output that follows WordPress conventions, no bloat, and everything computed in your browser.
Tools run in your browser. Database names, prefixes and secret salts you type are never sent to a server.
$ uploaded: 0 bytesGenerated code uses translatable labels, safely quoted values and the core hooks WordPress expects.
$ add_action( 'init', 'register_book' );Copy the result, download a ready file, or share a link that restores your settings.
$ download wp-config.php