Code Snippets
Mahesh Waghmare

WordPress Sensitization & Escaping Quick Examples

What is Sensitization? #What is Sensitization? Get secure user inputs. What is Escaping? #What is Escaping? Print / echo the secure output. # Sanitize: Secure Input: ## Sanitize: Secure Input: sanitize_email() sanitize_file_name() sanitize_html_class() sanitize_key() sanitize_meta() sanitize_mime_type() sanitize_option() sanitize_sql_orderby() sanitize_text_field() sanitize_title() sanitize_title_for_query() sanitize_title_with_dashes() sanitize_user() esc_url_raw() wp_filter_post_kses() wp_filter_nohtml_kses() # Escaping: Securing Output: ## Escaping: Securing Output: esc_html()

Read More »
Wordpress
Mahesh Waghmare

WordPress Translation Ready Reference Guide

Quick Reference: #Quick Reference: e is for echo x is for context n is for plurals # Translate Strings: ## Translate Strings: __() – Retrieve a translated string. _e() – Display a translated string. _x() – Retrieve a translated string with context. _ex() – Display a translated string with context. _n() – Retrieve a plural

Read More »
Scroll to Top
%d bloggers like this: