• Resolved Alkorr

    (@alkorr)


    Hi, I don’t want to use the shortcode but the function to insert your form into a page. I tried to do it but it doesn’t work (form not showing), do you know why?

    <?php if(function_exists('contactformx')) { contactformx(); } ?>

    Thanks! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeff Starr

    (@specialk)

    The contactformx() function returns its value (not echo), so try this should work:

    <?php if (function_exists('contactformx')) echo contactformx(); ?>

    I will update the help tab and documentation to reflect this information.

    • This reply was modified 5 years, 9 months ago by Jeff Starr. Reason: adds infos
    Thread Starter Alkorr

    (@alkorr)

    Thank you very much! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Check if function exists’ is closed to new replies.