WordPress.org does not have any hard requirements for code styles for plugins or themes.
In the plugin guidelines, the relevant section is #4, “Keep your code (mostly) human readable.” Mainly it is about obfuscation. The most relevant line is this:
We recommend following WordPress Core Coding Standards.
Note the word recommend, there. This is not a hard requirement.
The relevant portion of the theme review guidelines doesn’t really mention code style directly, so there’s no requirements for this kind of thing for themes either.
I’m kind of glad that there is some freedom here, but you will find that there’s plenty of very messy code in the plugin directory, that doesn’t really follow any one code style consistently at all. That’s allowed—for better or worse. 🙂
Related Posts:
- How can I configure Docker for developing and deploying a custom theme?
- Authoritative answer on which boots first – Plugins or Themes?
- Custom theme sufficient or custom plugin neccessary for this feature set?
- How to create custom home page via plugin?
- Featured Image not showing in admin
- How Can I setup WP CLI on Windows development machine running AMPPS?
- WP_LOCALIZE_SCRIPT doesn’t work
- Whats the difference between blog_info(‘stylesheet_url’) difference get_stylesheet_uri()
- Customizer: widget-synced triggers twice
- WordPress not working on localhost
- Custom entity search and display
- Why in this archive page that call query_posts() function show only the last 10 posts?
- How to replace settings in WordPress plugin from a theme
- How to remove/replace current page template?
- Setting a post’s category
- Want to know how to reveal a WordPress theme, considering the theme name is hidden?
- Metabox types list
- Rate limiting ajax requests in WordPress
- Determine if the current page, is being edited
- Managing Custom Designed Content
- Best practice: What belongs in theme and what in plugin for large eCommerce website
- Adding class to the parent of current-post-ancestor / current-menu-parent / current-post-parent
- Is Explicit Versioning a better alternative to Semantic Versioning for wordpress?
- Is there any other ways to replicating changes on live from staging without pushing from git
- Objective Best Practices for Plugin Development? [closed]
- How to get the path to the current theme?
- Why does WordPress use outdated jQuery v1.12.4?
- How do i best handle custom plugin page actions?
- How to create an API for my plugin?
- Plugins in symlinked directories?
- Is There a Plugin Life Cycle Documentation?
- How to use PanelColorSettings in custom Gutenberg block?
- What is an alternative method to the WordPress private _doing_it_wrong() function
- Is There A Hook To Process The Content Of The Text Widget?
- Check for featured image in WP_Query
- Update exisiting site to 3.5 release candidate
- add_filter and remove_filter added before and after wp_query
- What is the difference between strip_tags and wp_filter_nohtml_kses?
- Having Problem On Getting WP Post Gallery Images URL
- How to bundle a plugin with a theme, or vice versa
- What is the difference between these two methods of writing $ instead of jQuery in WordPress [closed]
- Modify a Free Plugin available on wordpress.org & include with my Premium Theme? [closed]
- Is there any way to have Featured Text, as opposed to Featured Image?
- Why WordPress architecture is not pure object oriented and it don’t use MVC pattern? [closed]
- Can I use namespaces in my plugin?
- Find source of notice / warning / errors efficiently
- StackExchange clone using WordPress?
- Sharing common functionality (functions, template parts) between plugins and themes?
- Change template dynamically
- Applying OO patterns and principles to plugin development
- Get Current Menu Location inside Nav_Walker
- Is it possible to change a term slug before being saved to the database?
- Maximum lifetime for nonce
- Short code not working in boostrap modal dont no why?
- Create a free scripts and styles template within a plugin
- Is there a way to list all actions registered by a plugin or theme?
- How can I turn a custom wordpress page into a product page?
- Elementor custom Query with ACF fields to show matching woocommerce products custom fields
- Incorporate small angular feature in my wordpress site
- How developed with version control word press site on shared host? [closed]
- How to Bind one post object Type with other postobject Type in Advanced Custom field [closed]
- PowerPress mobile media player
- When is the proper time to minify css and js with git workflow?
- REQUIRED: Could not find wp_link_pages. See: wp_link_pages by Theme Checker
- Codex Version Focus on Production or Nightly?
- Warning: include(): https:// wrapper is disabled in the server configuration by allow_url_include=0
- How should I go about registering JavaScript that isn’t a file? [duplicate]
- Make a plugin page out of influence of the theme’s style
- Update Data parameter of a wp_localize_script() call
- 400 Bad Request, in wordpress theme development, wp_ajax
- Add child pages to submenu automatically
- How to find where an object first instantiatiation
- Full documentation about $args for register_rest_route?
- Converting core modification to a plugin
- Save temporary registration data
- How can the_excerpt (or equivalent) be called on a category description?
- Serial Number from custom table not appear in woocommerce_email_before_order_table action
- Change the behaviour of a button
- Configuring Xdebug with docker compose
- How to access index file in Block Themes?
- How to create a custom post-new.php page for plugin , no wp menu
- WordPress Favicon not Working For Images/Videos/PDFs
- Redirection from a specific page for users logged in but not with membership
- Save meta box data from selected dropdown list in bbpress reply form
- Is it possible to develop themes and plugins locally while still allowing content to be updated directly in the admin dashboard?
- Replace “content-area” of themes 404 page with plugin?
- Autoloading & Namespaces in WordPress Plugins & Themes: Can it Work?
- Custom premium registration form and profile page for a WordPress Web Application
- Create Customization panel for Plugins not for theme
- Font Awesome stopped showing icons, shows &# text instead [closed]
- To remove rendering of menus and header, plugin or theme?
- Generate activation url
- Display Data’s metabox in page
- Client Profiles
- Saving multiple fields as array
- How can I make my website with wordpress having on-spot editing feature as compared to concrete5 CMS?
- How to add image for custom taxonomy
- Gutenberg text field validation
- How to get the value entered in the input field in wordpres
- Why isn’t custom sidebar panel not showing up in the Gutenberg Editor?