KEMBAR78
"Ensuring chances of theme acceptance in wordpress.org directory" on WordCamp Kathmandu 2016 | PPTX
1
WORDCAMP KATHMANDU NEPAL 2016
Sudeep Balchhaudi @meissudeep
Lead Theme Developer at eVisionthemes
Ensuring chances
of theme
acceptance in
wordpress.org
directory
style.css Heading Component
Component of style.css
The GPL License
style.css
Ensure your Theme is GPL
Readme.txt
Declare licenses of any resources included such as external Library, Fonts , Images.
No Hardcoded Scripts and Style
Minification of Scripts or Styles
Minification is allowed but Presence of main file is required.
If your theme name is “Bizlight” with a folder name of “bizlight”. Your theme prefix is bizlight
Prefix
PHP function names.
PHP class names.
PHP global variables.
Action/Filter hooks.
Script handles.
Style handles.
Image size names.
PHP function names.
PHP class names.
PHP global variables.
Action/Filter hooks.
Script handles.
Style handles.
Image size names.
Third-party script/style handles
Exception on prefixing
Validating , Sanitizing & Escaping
Conditions such as “is_email “ can be use to validate the data to be email.
Eg:
• absint
• validate_file
Check User Input
For sanitizing email field sanitize_email() is used
Eg:
• sanitize_html_class()
• sanitize_key()
• sanitize_text_field()
• sanitize_title()
Cleaning User Input
Escaping every thing on Output
Eg:
esc_html()
esc_textarea()
Securing Output
__( 'Hello, dear user!', 'my-text-domain' );
_e( 'Your Ad here', 'my-text-domain' );
Learn the difference between __ and _e
Translation Of Hardcoded Strings
Screenshots (1200x900)
Content creation
Plugin Territory (shortcodes , contact forms, SEO options etc.)
Some Other Short Listed
Finalizing & Testing
Code Handling
Content Handling
• wp-config.php
• define('WP_DEBUG', true);
• Use of plugin such as
• Theme check
• Developer
Code Handling
• Theme Unit Test data
https://codex.wordpress.org/Theme_Unit_Test
• Use of plugin such as
• FakerPress
• Monster Widget
Content Handling
https://make.wordpress.org/themes/handbook/review/required/
https://codex.wordpress.org/Validating_Sanitizing_and_Escaping_User_Data
http://themereview.co/prefix-all-the-things/ (Justin Tadlock)
Reference
Thank you
Sudeep Balchhaudi
@meissudeep
sudipbalchhaudi.com.np
Do contribution and follow #themereview
Sudeep Balchhaudi @meissudeep
queries
Do contribution and follow #themereview

"Ensuring chances of theme acceptance in wordpress.org directory" on WordCamp Kathmandu 2016

Editor's Notes

  • #32 In Slide Show mode, click the arrows to visit links.
  • #33 In Slide Show mode, click the arrows to visit links.