Run Short Code in Hook
-
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?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Run Short Code in Hook’ is closed to new replies.