• ajmast

    (@ajmast)


    I need to run a shortcode inside a hook:

    $uemploy=do_shortcode('[pmpro_member field="Employer/School"]');

    But it returns empty.

    The same code runs on the same page as the WFU uploader works fine.

    Alternatively, if I could pass the value to WFU via the wordpress_file_upload shortcode , and retrieve it in the hook, that would be fine.
    i.e.

    userdata="true"
    useerdata1="'.$uemploy.'"

    Any thoughts?

    • This topic was modified 4 years ago by ajmast.
Viewing 1 replies (of 1 total)
  • Plugin Author nickboss

    (@nickboss)

    Hi, I answered in the email you sent. Let’s continue from there.

    Regards

    Nickolas

Viewing 1 replies (of 1 total)
  • The topic ‘Run Short Code in Hook’ is closed to new replies.