I have a shortcode that outputs a block of html. One element in the block […]
Tag: escaping
How to correctly escape query variables to be used in WP_Query
I’ve got custom query variables that are added via query_vars. For example, ‘industry’. In pre_get_posts […]
Is it necessary to escape LIKE term in WP_User_Query?
While searching for partial string searches using WP_User_Query I came across this answer by @kaiser […]
How to sanitize user input?
What is the correct way sanitizing form data before submitting to the database? I have […]
Post Content, Special Characters and Filters
I added a hook to the_content. add_filter(‘the_content’, ‘edit_the_content’); function edit_the_content($content){ return $content; } Pretty simple […]
WordPress – site_url() returns with additional backslashes
I am using site_url() function and it returns the address as http://vip.local/cc where I can […]
Escaping ACF fields
My theme has been soft rejected many times in Themeforest for this reason. “” 1. […]
wp_specialchars and wp_specialchars_decode in a shortcode plugin
I have written my first plugin, a shortcode plugin. I have read about wp_specialchars and […]
From a security standpoint, should bloginfo() or get_bloginfo() be escaped?
I’ve been reviewing a lot of information about WP theme and plugin security and understand […]
When do I need to use esc_attr when using WordPress internal functions
When I am putting a WordPress value inside the attribute tag, for example, the following […]
No More Posts Available.
No more pages to load.