Skip to content

Commit

Permalink
Disable Zapier endpoints when TEC is not enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
pattihis committed Jul 1, 2024
1 parent 5f0b943 commit a0b9a9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Action_Endpoints {
* @param Abstract_REST_Endpoint $endpoint_obj An instance of the endpoint.
*/
public function filter_details( $endpoint, $endpoint_obj ) {
if ( in_array( $endpoint_obj->get_id(), [ 'new_events', 'updated_events', 'canceled_events', 'create_events' ], true ) ) {
if ( in_array( $endpoint_obj->get_id(), [ 'new_events', 'updated_events', 'canceled_events', 'create_events', 'find_events', 'update_events' ], true ) ) {
if ( ! class_exists( 'Tribe__Events__REST__V1__Validator__Base', false ) ) {
// Disable if Tribe__Events__REST__V1__Validator__Base class does not exist.
$endpoint['missing_dependency'] = true;
Expand Down

0 comments on commit a0b9a9b

Please sign in to comment.