Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

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

448 views

Published on

This Slide was prepared for WordCamp Kathmandu 2016, I have already presented this and its topic is "Ensuring chances of theme acceptance in wordpress.org directory
"

Published in: Technology
  • Be the first to comment

  • Be the first to like this

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

  1. 1. 1 WORDCAMP KATHMANDU NEPAL 2016
  2. 2. Sudeep Balchhaudi @meissudeep Lead Theme Developer at eVisionthemes
  3. 3. Ensuring chances of theme acceptance in wordpress.org directory
  4. 4. style.css Heading Component
  5. 5. Component of style.css
  6. 6. The GPL License
  7. 7. style.css Ensure your Theme is GPL
  8. 8. Readme.txt Declare licenses of any resources included such as external Library, Fonts , Images.
  9. 9. No Hardcoded Scripts and Style
  10. 10. Minification of Scripts or Styles Minification is allowed but Presence of main file is required.
  11. 11. If your theme name is “Bizlight” with a folder name of “bizlight”. Your theme prefix is bizlight Prefix
  12. 12. PHP function names. PHP class names. PHP global variables. Action/Filter hooks. Script handles. Style handles. Image size names.
  13. 13. PHP function names.
  14. 14. PHP class names.
  15. 15. PHP global variables.
  16. 16. Action/Filter hooks.
  17. 17. Script handles.
  18. 18. Style handles.
  19. 19. Image size names.
  20. 20. Third-party script/style handles Exception on prefixing
  21. 21. Validating , Sanitizing & Escaping
  22. 22. Conditions such as “is_email “ can be use to validate the data to be email. Eg: • absint • validate_file Check User Input
  23. 23. For sanitizing email field sanitize_email() is used Eg: • sanitize_html_class() • sanitize_key() • sanitize_text_field() • sanitize_title() Cleaning User Input
  24. 24. Escaping every thing on Output Eg: esc_html() esc_textarea() Securing Output
  25. 25. __( 'Hello, dear user!', 'my-text-domain' ); _e( 'Your Ad here', 'my-text-domain' ); Learn the difference between __ and _e Translation Of Hardcoded Strings
  26. 26. Screenshots (1200x900) Content creation Plugin Territory (shortcodes , contact forms, SEO options etc.) Some Other Short Listed
  27. 27. Finalizing & Testing Code Handling Content Handling
  28. 28. • wp-config.php • define('WP_DEBUG', true); • Use of plugin such as • Theme check • Developer Code Handling
  29. 29. • Theme Unit Test data https://codex.wordpress.org/Theme_Unit_Test • Use of plugin such as • FakerPress • Monster Widget Content Handling
  30. 30. 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
  31. 31. Thank you Sudeep Balchhaudi @meissudeep sudipbalchhaudi.com.np Do contribution and follow #themereview
  32. 32. Sudeep Balchhaudi @meissudeep queries Do contribution and follow #themereview

×