The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Using Shortcodes inside Openhook (2 posts)

  1. jameszol
    Posted 5 years ago #

    How can I execute shortcodes inside Openhook?

    I tried the do_shortcode php surrounding it and couldn't get it to work, there are a few "add filter" things I could try, but I wasn't sure what the text in Openhook is called so I can add a filter to that text with "do_shortcode"...

    Thoughts? Recommendations?

    This is where I rec'd a few ideas that didn't seem to work for me... http://sillybean.net/2010/02/using-shortcodes-everywhere/


  2. Spencer Tomosvary
    Posted 5 years ago #

    You can do it like this:

    $myfunction= '[PutYourShortCodeHere]';
    $myfunction_parsed = do_shortcode($myfunction);
    echo $myfunction_parsed;?>

    Make sure to check the box that says 'execute PHP on this hook'.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • OpenHook
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic