Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if GF_Webhooks class exists #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kartikmehta8
Copy link
Member

  • Add a check if GF_Weekhook class exists or not in convert_to_gravity_form function.
if ( ! empty( $webhooks ) && class_exists( 'GF_Webhooks' ) ) {
	$webhook_handler = new GF_Webhooks();
	foreach ( $webhooks as $webhook ) {
		$webhook_handler->insert_feed( $form_id, true, $webhook );
	}
}

@kartikmehta8 kartikmehta8 self-assigned this Feb 24, 2025
@kartikmehta8 kartikmehta8 linked an issue Feb 24, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Critical error after import
1 participant