New answers tagged

0

Ok, in case somebody else needed a solution, I have figured it out. The problem was that Events Calendar Pro stores checked values of multiple checkboxes in one single string delimited by the pipe symbol. Just imploding the sanitized field fixes the problem: if ( isset( $sanitized_values['special_acts'] ) ) { $salva = ...


1

Never edit the WordPress core files. Instead you should hook into the pre_comment_content, which is where the comment text from the textarea is being sanitized, before it's inserted into the database. In the example below preg_replace is used to sanitize the comment text submitted. You should modify the function to fit your needs. function ...



Top 50 recent answers are included