DEV Community

Cover image for How to Submit a Theme to WordPress.org: Review Guide
Istiak Ahamed
Istiak Ahamed

Posted on Originally published at kinetix.software

How to Submit a Theme to WordPress.org: Review Guide

Most first-time theme submissions to the official WordPress directory stall in review over the same five preventable issues: unescaped output on get_theme_mod(), missing third-party asset licenses in readme.txt, custom post types bundled inside the theme ("plugin territory"), unprefixed global function names, or broken keyboard focus states. Learning how to submit theme to wordpress.org cleanly means auditing your zip package against the official Theme Review Handbook before you open a Trac ticket. Below is the technical pre-flight guide, complete code patterns for escaping and sanitization, and a copyable pre-submission checklist modeled on our own Kinetix 3.5.0 WordPress.org submission.

Table of Contents


Quick Answer: The 6 Core Gates Every WordPress.org Theme Must Pass

Before uploading your .zip at wordpress.org/themes/getting-started/, verify that your theme satisfies every mandatory rule in the WordPress Theme Review Handbook:

  1. 100% GPL-compatible license: Your PHP, JS, CSS, bundled fonts, icons, and every image visible in screenshot.png must carry a GPL-compatible license declared in style.css and itemized in readme.txt.
  2. Presentation only (No Plugin Territory): No register_post_type(), no register_taxonomy(), no shortcodes, no analytics tracking scripts, and no custom SEO meta boxes inside the theme.
  3. Sanitize on save, escape late on output: Every Customizer setting must have a sanitize_callback, and every echo must wrap variables immediately in esc_html(), esc_attr(), esc_url(), or wp_kses_post().
  4. Unique prefixing and single text domain: Every function, class, constant, option, and handle must use your theme slug prefix (e.g., kinetix_), and all translation calls (__(), _e(), esc_html__()) must use the exact theme directory slug as the single text domain.
  5. Keyboard accessibility: Visible :focus / :focus-visible outlines, a working "Skip to content" link, and keyboard-accessible dropdown menus.
  6. Zero PHP notices or Theme Check errors: Clean run under WP_DEBUG = true with the official Theme Check plugin and Theme Unit Test XML imported.

How the WordPress.org Upload and Trac Review Lifecycle Works

When you submit theme to wordpress.org, your zip file passes through both automated static scanners and human/automated review on themes.trac.wordpress.org.

flowchart TD
    A["Developer Runs Local Pre-Flight (Theme Check + WP_DEBUG + Unit Test XML)"] --> B["Upload theme.zip at wordpress.org/themes/getting-started/"]
    B --> C{"Automated Upload Scanner Passes?"}
    C -- "No (Fatal Theme Check / Missing Header / PHP Syntax Error)" --> D["Upload Rejected Immediately — Fix Locally & Re-Upload"]
    C -- "Yes" --> E["Trac Ticket Created (e.g. themes.trac.wordpress.org/ticket/...)"]
    E --> F["Direct Download Zip & WordPress Playground Preview Generated"]
    F --> G["Directory Review Checks: Licensing, Escaping, Plugin Territory, A11y"]
    G --> H{"Changes Requested on Trac?"}
    H -- "Yes" --> I["Bump Version in style.css & readme.txt + Upload Updated Zip"]
    I --> G
    H -- "No (Approved)" --> J["Theme Goes Live in WordPress.org Theme Directory"]

Notice an important detail about step F: as soon as the upload scanner accepts your zip and creates a Trac ticket (for example, you can inspect the public Kinetix v3.5.0 ticket at themes.trac.wordpress.org/ticket/300888 and source browser at themes.trac.wordpress.org/browser/kinetix/3.5.0), WordPress.org hosts the versioned zip and generates an interactive WordPress Playground review blueprint so anyone can test the exact submitted code in the browser while review is underway.


Gate 1: Plugin Territory vs Presentation (Why Content Types Belong in a Plugin)

The #1 architectural reason commercial or portfolio themes fail their initial WordPress.org review is plugin territory.

The Theme Review Requirements enforce a strict boundary: themes control how content is presented; plugins control what content exists and how site functionality behaves. If a user switches from your theme to Twenty Twenty-Five tomorrow, they must not lose access to their posts, portfolio projects, forms, or SEO metadata.

Feature or API Call Allowed in a WordPress.org Theme? Where It Must Live Instead
register_post_type() / register_taxonomy() Forbidden (causes data lock-in) Companion plugin on WordPress.org (see our WordPress custom post type without a plugin guide)
add_shortcode() Forbidden Companion plugin or core Gutenberg block patterns
Block Patterns (register_block_pattern) & Block Styles Allowed & Encouraged Theme patterns/ directory or init hook
theme.json Palettes, Typography, & Templates Allowed & Encouraged Theme root theme.json and templates/ (see our block theme development guide)
Customizer Layout & Color Controls ($wp_customize) Allowed (for visual presentation settings) Theme inc/customizer.php with strict sanitize_callback on every setting
Custom Login Screen Rebranding / White-Labeling Forbidden in free directory themes Separate agency plugin
Bundled .zip Plugins Inside Theme Folder Forbidden Recommend plugins hosted in the official WordPress.org Plugin Directory (required => false)

When we prepared Kinetix for WordPress.org, we designed the ecosystem around this exact split from day one: the free Kinetix Theme contains only templates, the glass design-token engine, and Customizer controls, while the Projects and Research custom post types and starter importer live in the separate Kinetix Core plugin. Even when Kinetix Core is deactivated, the theme renders all standard posts, pages, menus, and widgets without errors.


Gate 2: Strict Late Escaping and Input Sanitization

Theme reviewers search your entire codebase for echo, print, printf, <?=, add_setting, and get_theme_mod. Two rules govern every single piece of dynamic data in a WordPress.org theme:

  1. Sanitize every Customizer setting on registration. Every $wp_customize->add_setting() call must include a 'sanitize_callback'. Leaving 'sanitize_callback' empty or passing an arbitrary closure that returns raw $input is an automatic blocker.
  2. Escape late—right at the point of output. Never escape a variable 20 lines above echo and then echo $variable;. Escape inside the echo or printf statement itself so an auditor reading that single line can verify the output context (HTML body, attribute, URL, or JS).

Here is a complete, review-compliant Customizer registration and template output example:

<?php
/**
 * Example: Review-compliant Customizer setting registration and late-escaped front-end output.
 *
 * @package Kinetix
 */

defined( 'ABSPATH' ) || exit;

/**
 * Sanitize a floating-point range value (e.g., glass alpha 0.20 to 0.95).
 *
 * @param mixed $value Raw Customizer input.
 * @return float Clamped float.
 */
function kinetix_sanitize_float_range( $value ): float {
    $float = (float) $value;
    return max( 0.20, min( 0.95, round( $float, 2 ) ) );
}

/**
 * Sanitize a select/radio control against its declared choices array.
 *
 * @param string               $input   Selected key.
 * @param WP_Customize_Setting $setting Setting instance.
 * @return string Valid choice key or setting default.
 */
function kinetix_sanitize_select( string $input, WP_Customize_Setting $setting ): string {
    $key     = sanitize_key( $input );
    $control = $setting->manager->get_control( $setting->id );
    $choices = ( $control && is_array( $control->choices ) ) ? $control->choices : array();

    return array_key_exists( $key, $choices ) ? $key : (string) $setting->default;
}

/**
 * Register Customizer settings with mandatory sanitize_callback definitions.
 *
 * @param WP_Customize_Manager $wp_customize Customizer manager instance.
 */
function kinetix_customize_register( WP_Customize_Manager $wp_customize ): void {
    $wp_customize->add_setting(
        'kinetix_header_cta_label',
        array(
            'default'           => __( 'Explore Projects', 'kinetix' ),
            'type'              => 'theme_mod',
            'capability'        => 'edit_theme_options',
            'sanitize_callback' => 'sanitize_text_field',
        )
    );

    $wp_customize->add_setting(
        'kinetix_header_cta_url',
        array(
            'default'           => '',
            'type'              => 'theme_mod',
            'capability'        => 'edit_theme_options',
            'sanitize_callback' => 'esc_url_raw',
        )
    );

    $wp_customize->add_setting(
        'kinetix_glass_alpha',
        array(
            'default'           => 0.72,
            'type'              => 'theme_mod',
            'capability'        => 'edit_theme_options',
            'sanitize_callback' => 'kinetix_sanitize_float_range',
        )
    );

    $wp_customize->add_setting(
        'kinetix_header_layout',
        array(
            'default'           => 'minimal',
            'type'              => 'theme_mod',
            'capability'        => 'edit_theme_options',
            'sanitize_callback' => 'kinetix_sanitize_select',
        )
    );
}
add_action( 'customize_register', 'kinetix_customize_register' );
Enter fullscreen mode Exit fullscreen mode

And when rendering those values in a template file, escape at the exact moment of output:

<?php
$kinetix_cta_label = (string) get_theme_mod( 'kinetix_header_cta_label', __( 'Explore Projects', 'kinetix' ) );
$kinetix_cta_url   = (string) get_theme_mod( 'kinetix_header_cta_url', '' );
$kinetix_layout    = (string) get_theme_mod( 'kinetix_header_layout', 'minimal' );

if ( '' !== $kinetix_cta_url && '' !== $kinetix_cta_label ) :
    ?>
    <div class="kinetix-header-actions kinetix-layout-<?php echo esc_attr( $kinetix_layout ); ?>">
        <a class="kinetix-btn" href="<?php echo esc_url( $kinetix_cta_url ); ?>">
            <?php echo esc_html( $kinetix_cta_label ); ?>
        </a>
    </div>
    <?php
endif;
Enter fullscreen mode Exit fullscreen mode

Which Escaping Function Fits Which Context?

Output Context Required WordPress Escaping Function Translated Equivalent Common Review Mistake to Avoid
Plain text inside HTML tags (<p>...</p>) esc_html( $text ) esc_html__( 'Text', 'slug' ) / esc_html_e() Using __() or _e() without esc_html__() / esc_html_e().
HTML attribute value (class="...", data-x="...") esc_attr( $val ) esc_attr__( 'Label', 'slug' ) / esc_attr_e() Echoing get_theme_mod() inside a class or aria-label without esc_attr().
Href or Src URL attribute (href="...", src="...") esc_url( $url ) N/A Using esc_attr() instead of esc_url() on home_url() or get_permalink().
Rich post HTML (allows safe anchor/strong tags) wp_kses_post( $html ) N/A Echoing user HTML or copyright strings raw without wp_kses_post().

Gate 3: Prefixing, Text Domains, and Translation Readiness

Because WordPress themes share a single global PHP namespace with core and all active plugins, every identifier your theme puts in global scope must start with your unique theme slug prefix (at least 4 characters; avoid two-letter prefixes like kx_ in global theme functions if your theme slug is kinetix—use kinetix_).

Check every item in this list before packaging your theme:

  1. PHP functions, classes, interfaces, and constants: kinetix_setup(), Kinetix_Walker_Nav_Menu, KINETIX_VERSION.
  2. Global variables (if any): $kinetix_content_width (except core globals like $content_width).
  3. Script and style handles: wp_enqueue_style( 'kinetix-main', ... ), wp_enqueue_script( 'kinetix-navigation', ... ). Exception: third-party bundled libraries may keep their standard handle if needed, though prefixing is preferred.
  4. Image sizes and Customizer IDs: add_image_size( 'kinetix-card', 800, 500, true ).
  5. Single Text Domain matching the folder slug: If your theme folder is kinetix, every translation function call must pass 'kinetix' as a literal string—never a variable (__( 'Read more', $domain ) breaks static .pot parsers!).

Gate 4: GPLv2+ Licensing, Bundled Font/Image Credits, and readme.txt

Every single byte inside your submitted .zip file must be 100% GPL-compatible (see our WordPress GPL & commercial licensing guide). Many developers remember to license their PHP and CSS under GPL-2.0-or-later, then get tripped up by bundled assets:

  • Images in screenshot.png and block patterns: You cannot use Unsplash photos in screenshot.png or starter patterns! Wait—why not Unsplash? Because the official WordPress Theme Review Guidelines explicitly list Unsplash's post-2017 license (and Pixabay / Pexels custom licenses) as not GPL-compatible. Any photography shown in screenshot.png or bundled in /assets/images/ must be either your own original artwork released under CC0/GPL or sourced from a strictly CC0-verified repository like the WordPress.org Photo Directory (wordpress.org/photos/) or StockSnap.io, with every direct source URL listed in readme.txt.
  • Fonts and Icons: Local font files (e.g., Inter, Inter Tight, JetBrains Mono under SIL Open Font License 1.1) and SVG icon sets (e.g., Lucide under ISC or Heroicons under MIT) are GPL-compatible, provided you list the copyright holder, license name, and source URL in readme.txt.

Here is a compliant readme.txt header and copyright block structure:

=== Kinetix ===
Contributors: istiak101
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 3.5.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Dark-glass WordPress theme with five header layouts, three footers, and Customizer design tokens for studios and researchers.

== Description ==

Kinetix is a dark-first presentation theme built for creative studios, engineers, and research labs...

== Copyright ==

Kinetix WordPress Theme, Copyright 2026 Istiak Ahamed
Kinetix is distributed under the terms of the GNU GPLv2 or later.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This theme bundles the following third-party resources:

* Inter & Inter Tight Fonts
  Copyright (c) The Inter Project Authors
  License: SIL Open Font License 1.1 (OFL-1.1)
  Source: https://github.com/rsms/inter

* JetBrains Mono Font
  Copyright (c) JetBrains s.r.o.
  License: SIL Open Font License 1.1 (OFL-1.1)
  Source: https://github.com/JetBrains/JetBrainsMono

* Screenshot graphic vectors and UI preview cards
  Copyright 2026 Istiak Ahamed, created specifically for Kinetix
  License: CC0 1.0 Universal (Public Domain) / GPLv2 or later
Enter fullscreen mode Exit fullscreen mode

Gate 5: style.css Headers, screenshot.png, and Accessibility Rules

Check these three files and front-end behaviors before running your final zip build:

  1. style.css Required Headers: Your root style.css comment block must declare Theme Name, Author, Description, Version, Requires at least, Tested up to, Requires PHP, License, License URI, Text Domain, and only official WordPress.org Theme Tags (make.wordpress.org/themes/handbook/review/required/theme-tags/). If you declare Theme URI and Author URI, they must be distinct URLs, and Theme URI must resolve to a live public page documenting the theme (not a 404 or generic sales landing page without theme info).
  2. screenshot.png Dimensions & Honesty:
    • Must be .png or .jpg, 4:3 aspect ratio, maximum 1200 × 900 pixels (under 2 MB).
    • Must represent an actual rendered view of the theme out of the box (or achievable via the theme's built-in Customizer/patterns)—not a 3D angled laptop mockup, marketing banner, or feature comparison table.
  3. Mandatory Keyboard Accessibility:
    • The first focusable element inside <body> must be a Skip to content link (<a class="skip-link screen-reader-text" href="#primary">) that becomes visible on :focus and moves keyboard focus directly to your <main id="primary"> landmark.
    • Never remove browser focus outlines (outline: none) without providing a clear, high-contrast replacement (:focus-visible { outline: 2px solid var(--kx-accent); outline-offset: 2px; }).
    • All content links inside paragraphs and text blocks must be visually distinguishable from surrounding prose (typically via text-decoration: underline).

Gate 6: Local Pre-Flight Testing (Theme Check, Unit Test Data, WP_DEBUG)

Run your theme through the exact same test suite reviewers use before uploading to WordPress.org:

  1. Enable full debug flags in wp-config.php:
   define( 'WP_DEBUG', true );
   define( 'WP_DEBUG_LOG', true );
   define( 'WP_DEBUG_DISPLAY', true );
Enter fullscreen mode Exit fullscreen mode
  1. Import the Theme Unit Test Data XML (github.com/WPTT/theme-unit-test): This populates your local install with deeply nested comments, 10-level menu trees, long unbroken titles, floated images, password-protected posts, and paginated <!--nextpage--> articles. Click through every template and confirm nothing overflows horizontally or triggers a PHP warning.
  2. Run the Theme Check plugin: Fix every REQUIRED and WARNING item before generating your distribution .zip.

Troubleshooting: Upload scanner rejects zip with "Text domain does not match theme slug"

Check two places:

  1. Ensure the top-level folder inside your .zip archive is named identically to your Text Domain: header in style.css (e.g., kinetix/style.css, never kinetix-3.5.0/style.css or files zipped directly at the root without a parent folder).
  2. Search your PHP files for any leftover translation call from a starter theme (such as '_s' or 'twentytwentyfour'). Even a single mismatched text domain string will trigger an upload rejection.

Troubleshooting: Reviewer flags footer copyright or upsell notice

Under the Theme Review Guidelines:

  • Front-end footer copyright text must default to the site owner's name (get_bloginfo( 'name' )), not the theme author's copyright. You may include a subtle, single "Powered by / Theme by" credit link if it is optional or editable, but you must never lock or obfuscate footer links.
  • Admin dashboard notices must only appear on the theme's own page or be standard dismissible notices that stay permanently dismissed (update_user_meta / option) and do not hijack the main WordPress dashboard.

Copyable WordPress.org Theme Review Pre-Submission Checklist

Copy this Markdown checklist into your release pull request before uploading your zip to WordPress.org:

- [ ] Zip root contains a single folder matching Text Domain (`your-slug/style.css`)
- [ ] Zero `.git`, `.DS_Store`, `node_modules`, `.map`, or uncompiled lockfiles inside the zip
- [ ] `style.css` & `readme.txt` declare matching Version, Requires WP, Tested up to, Requires PHP, and GPLv2+ License
- [ ] Every bundled font, icon set, script, and image has Copyright, License (GPL-compatible), and Source URL in `readme.txt`
- [ ] Zero Unsplash, Pixabay, or Pexels images in `screenshot.png` or bundled theme assets
- [ ] `screenshot.png` is 1200x900 (4:3) and shows a real un-mocked browser view of the theme
- [ ] Zero `register_post_type()`, `register_taxonomy()`, or `add_shortcode()` calls in the theme
- [ ] Every `$wp_customize->add_setting()` has a valid `sanitize_callback`
- [ ] All dynamic output is late-escaped (`esc_html`, `esc_attr`, `esc_url`, `wp_kses_post`)
- [ ] All PHP functions, classes, constants, options, and handles use the theme prefix
- [ ] Working Skip-to-Content link, visible `:focus-visible` outlines, and underlined prose links
- [ ] Zero errors/warnings in Theme Check plugin and `debug.log` with Theme Unit Test XML loaded
Enter fullscreen mode Exit fullscreen mode

Frequently Asked Questions

How do I update my theme while a WordPress.org Trac review ticket is still open?

Bump the Version: field in both style.css and readme.txt (Stable tag:), document the changes under == Changelog == in readme.txt, and upload the new .zip at wordpress.org/themes/getting-started/. WordPress.org automatically attaches the new version to your existing open Trac ticket.

Can my free WordPress.org theme have paid companion plugins?

Yes, provided the free theme is 100% functional on its own, contains zero locked or crippled code inside the free theme zip, and follows the Theme Review Handbook guidelines. Companion plugins (like Kinetix Core or paid add-ons) must never be bundled as .zip files inside the theme directory.

Do I need to include unminified source files if my theme uses a build step?

Yes. Under the GPL's "preferred form of the work for making modifications" requirement, if your theme ships compiled or minified CSS or JavaScript bundles, you must also include the readable unminified source files (or unminified .js/.css alongside .min.js/.min.css) inside the theme zip and document the build command in readme.txt.


Originally published at https://kinetix.software/blog/wordpress-org-theme-review-checklist.

Top comments (0)