Mar 28, 2025 9:01 am
Cannot redeclare my_custom_email_html_tags() (previously declared in /var/www/html/wp-content/plugins/insert-headers-and-footers/includes/class-wpcode-snippet-execute.php(419) : eval()'d code:150)
I recently got this after updating to the latest wpforo. I have a wpcode snippet that does this:
function my_custom_email_html_tags( $allowed_html ){
if( $allowed_post_html = wp_kses_allowed_html( 'post' ) ){
$allowed_html = $allowed_post_html;
}
return $allowed_html;
}
add_filter( 'wpforo_kses_allowed_html_email', 'my_custom_email_html_tags');
So it allows for custom css/html I believe. Did something change in the recent release that caused this behaviour?
Â
Thank you for any tips!
1 Reply
Mar 28, 2025 12:20 pm
Hi,
The error indicates that the function is declared twice. Please check your code, locate the duplicate declaration, and remove it.