Code being executed twice again?
-
I have the same issue as this guy: https://wordpress.org/support/topic/code-being-executed-twice/
Wordpress and plugin are fully updated. I currently have no snippets live.
Here is the code I’m trying to add:
function remove_custom_post_comment() {
remove_post_type_support( ‘tribe_events’, ‘comments’ );
}
function remove_custom_post_comment() {
remove_post_type_support( ‘tribe_venue’, ‘comments’ );
}
function remove_custom_post_comment() {
remove_post_type_support( ‘tribe_organizer’, ‘comments’ );
}add_action( ‘init’, ‘remove_custom_post_comment’ );
Here is the error message:
The code snippet you are trying to save produced a fatal error on line 6:Cannot redeclare remove_custom_post_comment() (previously declared in /www/wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(187) : eval()’d code:2)
I can’t make the code live. What is causing this?
The topic ‘Code being executed twice again?’ is closed to new replies.