From 50aa86012e2f2b194d04b0f51e1f84ce8b91cdd2 Mon Sep 17 00:00:00 2001 From: Linkon Miyan Date: Mon, 21 Oct 2024 20:24:08 +0600 Subject: [PATCH] ignore the gravity form widget if it is loading from conversational_form post type --- includes/Elements/GravityForms.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Elements/GravityForms.php b/includes/Elements/GravityForms.php index 1bbe8fd3a..bcff9d59f 100755 --- a/includes/Elements/GravityForms.php +++ b/includes/Elements/GravityForms.php @@ -2843,9 +2843,9 @@ protected function register_controls() { * @access protected */ protected function render() { - if(!class_exists('\GFForms')) { - return; - } + if ( ! class_exists( '\GFForms' ) || get_post_type( get_the_ID() ) === 'conversational_form' ) { + return; + } $settings = $this->get_settings_for_display();