Skip to content

Commit

Permalink
ignore the gravity form widget if it is loading from conversational_f…
Browse files Browse the repository at this point in the history
…orm post type
  • Loading branch information
rudlinkon committed Oct 21, 2024
1 parent 62aaae2 commit 50aa860
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/Elements/GravityForms.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 50aa860

Please sign in to comment.