I am developing a site that allows users to add and edit posts from the frontend. We also use TEC on this site. On the page where the user can add the post we get an error coming from the-events-calendar.class.php
The problem is, on our post adding page, our code uses:
However, because TEC is installed, we also see on line 230 of the above file mentioned:
add_action( 'wp_insert_post', array( $this, 'addPostOrigin' ), 10, 2 );
This causes an issue where the site displays an error on the post adding page:
Warning: Missing argument 2 for TribeEvents::addPostOrigin() in F:\xampp\htdocs\sitename\wp-content\plugins\the-events-calendar\lib\the-events-calendar.class.php on line 1813
What I would like to find out, is there a way to use remove_action to disable this function on this page only?