I'm using some custom meta boxes with TinyMCE fields to let the client edit separate tabs on a page. When they embed a Gravity Form in one of these fields, the necessary scripts don't get enqueued.
It looks like this is because GFFormDisplay::enqueue_scripts
looks through the current WP query content for forms. I'm wondering, might it be possible for Gravity Forms to scan for forms using the the_content
filter? I output all my custom TinyMCE fields with this filter, so presumably the forms would be detected, and the scripts would go in the footer.
Meantime, could you help me with a hack? I've tried this in my theme's functions.php:
However, it seems that enqueue_scripts
can't call get_embedded_forms
, because the latter is a private method. Any way to do this?