Advertisement
Guest User

Untitled

a guest
Aug 28th, 2021
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1.  
  2. 1. Anything before the first underscore is classed as the prefix, and all prefixes must be 3 chars or more. Please use a unique prefix for all function names, custom image sizes, classes, constants, hooks, public/global variables, and database entries to avoid conflict issues with plugins and other themes. For example, themename_ OR frameworkname_. You can use frameworkname_ if you’re using a framework, while using themename_ for your themes. Read more at: https://themereview.co/prefix-all-the-things/
  3.  
  4. 2. All theme text strings are to be translatable and properly escaped. https://gist.github.com/kailoon/01fa8e95d2e910e666c6
  5.  
  6. 3. Data must be correctly escaped and sanitized. Look at your $_POST and $GET data.\
  7.  
  8. 4. No inline CSS. All CSS must be separated into an external stylesheet.
  9.  
  10. 5. () & e() does not escape. Simply use WordPress' escaping functions such as esc_attr(), esc_html() etc…
  11.  
  12. 6. All JavaScript should be written with “use strict” mode on; For example, you can do this with jQuery:
  13. (function($){
  14. “use strict”;
  15. //Code here
  16. })(jQuery);
  17.  
  18. 7. Use on(); rather than .click(), .bind(), .hover(), .submit(), etc.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement