Display a WPForm with code
WPForms is usually added to pages using a shortcode like [wpforms id="123"]. But you can also use the following function to add it to your theme. This is useful when you want a contact form to appear in the footer of every page on your site.
wpforms_display( $id, $display_title, $display_description );