Add A Shortcode To An HTML Module [RESOLVED]

Hey Elias! Thank you man for taking the time to do this. I actually ended up using that page after I looked at it and went a bit deeper.

add_filter( 'gform_pre_render', 'encore_do_shortcode_gform_html', 10, 2 );

function do_shortcode_gform_html( &$item, $key ) {
  
  if ( is_string( $item ) ) {
    $item = do_shortcode( $item );
       } else {
    $item['html'] = do_shortcode( $item['html'] );
  }
}



function encore_do_shortcode_gform_html( $form, $ajax ) {

  $form['html'] = do_shortcode( $form['html'] );
  array_walk_recursive( $form['fields'], 'do_shortcode_gform_html' );

  return $form;
}

Thanks again for leading me to a solution. I truly appreciate it!

2 Likes