Notifications
Clear all

Cannot redeclare my_custom_email_html_tags?

2 Posts
2 Users
0 Reactions
125 Views
Posts: 6
Topic starter
(@atvvta)
Active Member
Joined: 8 months ago
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
Sofy
Posts: 5304
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi,

The error indicates that the function is declared twice. Please check your code, locate the duplicate declaration, and remove it.

Reply