It is all about the theme guidelines for WordPress.Org theme repository.
Size: 5.08 MB
Language: en
Added: Feb 22, 2019
Slides: 17 pages
Slide Content
WORDCAMP BANGKOK 2019 Presentation by Marceline Anderson
GANGA KAFLE Co-Founder of Template Sell WordPress Developer Theme Review Team Lead Manages WPEntire WordPress Blog Lead Organizer of WordCamp Biratnagar 2018 # W C B K K
MAKE YOUR THEME ON WORDPRESS.ORG STANDARDS T H I N K B E F O R E Y O U S U B M I T T H E M E S O N W P . O R G
SHOULD MY THEME BE BASED ON S T A N D A R D S ?
Setup Theme Development Environment define('WP_DEBUG', true); in wp- config.php Import Demo Data from Tools > Import Install Developer, Theme Check and Theme Sniffer Plugin
What are the Theme Standards? What your theme should have? G P L C O M P A T I B L E Mention License of Every third party resources used on theme. Example: Image, JS, CSS library etc. E R R O R F R E E A N D S E C U R E It must be error free, warning and notices are not allowed. Use unique prefix to reduce conflicts with plugins. T R A N S L A T I O N R E A D Y Every default and static strings must be translation ready. Example: <?php _e('Default Text', 'text-domain'); ?> N O T M O R A L L Y O F F E N S I V E Make your theme which is perfect for everyone who want to use it. Never use offensive images, text or any resources.
IMPORTANT THINGS TO CARE ABOUT P R E F I X I N G Prefix with Theme Slug. PHP function names, PHP class names, PHP global variables, Action/Filter hooks, Script handles, Style handles, Image size names. S T Y L E . C S S F I L E Theme URI & Author URI Text Domain Tags and Subject Tags F U N C T I O N S . P H P F I L E Enqueue JS, CSS and Fonts ( Hardcoded not allowed ) Do not load popular scripts, WordPress already loaded that. # W C B K K
Validation, Sanitization and Escaping Validate and/or sanitize untrusted data before entering into the database. Customizer Data must be sanitze before saving and escape it before output. E X A M P L E sanitize_email, esc_attr, esc_url, esc_html, absint etc. All untrusted data should be escaped before output. E X A M P L E sanitize_email(), sanitize_text_field(), esc_url_raw, absint etc E X A M P L E ' s a n i t i z e _ c a ll ba c k ' = > 'sanitize_text_field';
WHAT ARE NOT ALLOWED? KEEP IT IN MIND, THE BELOW LISTED THINGS Custom Post types and taxonomies are not allowed. C U S T O M P O S T T Y P E Shortcodes are not allowed. You are not allowed to make shortcodes on theme. S H O R T C O D E S Not allowed to bundle plugins in the theme. Theme can recommend plugins and those plugins must be in dot org repository. P L U G I N S
SCREENSHOT SIZE - No logo or mockup, actual layout of your theme is required. - Required size 4:3 aspect ratio. - Recommended size is 1200*900
- W and P of WordPress always in uppercase. Remove unnecessary commented code. No customization in WordPress admin. Redirection is not allowed after theme activated. It’s not allowed to remove the default functionality of core. Don’t include development files. Premium Theme Shop should be GPL. Don’t include backup files on theme folder. No analytics or tracking. No Sharing API is allowed. ( Facebook, twitter etc ) Save options on single array. I M P O R T A N T THINGS TO CARE ABOUT
- Not overriding admin bars. No URL shorteners used in the theme. All code and design should be your own or legally yours. Use WordPress functionality and features first, if available. You are not allowed to duplicate existing features. Custom favicon is not allowed. It’s core functionality. Check name collision. Submit one theme at a time. I M P O R T A N T THINGS TO CARE ABOUT
Some More Tips Check Existing Live Tickets Follow Theme Guidelines Start Reviewing Other Themes
Some More Tips Join # themereview channel on Slack Attend Meeting Regularly Contact With Mods and Admins
HOW THEME REVIEW PROCESS WORKS? S U B M I T T H E M E W A I T Q U E U E R E V I E W A N D S O L V E I S S U E S / C L O S E D W A I T A D M I N R E V I E W L I V E / C L O S E D
This is Where My Presentation Ends And, Quality WordPress Theme Development Begins !
G A N G A K A F L E Theme Reveiw Team Lead Co-Founder of Template Sell Follow me: @sandilyakafle fb.com/kafleg