Question
I'm a bit unfamiliar with WP development... but what I'm trying to achieve is basically: Query all current posts Run wp_kses on all the post's content? What I'm trying so far in functions.php $post_args = array( 'posts_per_page' ...
0
, 8 months 0 Answers 81 views

Question
When writing code that accepts input from users I always sanitize data one variable at a time. Example: $title = wp_strip_all_tags($_POST['title']); $content = wp_strip_all_tags($_POST['content']); I had the idea of simplifying things by sanitizing everything at once, inside a loop: foreach ($_POST as $key => $value) ...
0
, 10 months 0 Answers 114 views