Skip to content

Instantly share code, notes, and snippets.

@jentanbernardus
Last active March 31, 2021 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jentanbernardus/36771ee8219282965428de7ae4ee1066 to your computer and use it in GitHub Desktop.
Save jentanbernardus/36771ee8219282965428de7ae4ee1066 to your computer and use it in GitHub Desktop.
Display a WPForm with code #wordpress #code #snippet

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 );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment