enqueue frontend submission scripts and styles

Support MB Frontend Submission enqueue frontend submission scripts and styles

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #44079
    pluginovenpluginoven
    Participant

    Here is an interesting edge case where we are dynamically displaying a frontend submission form in a modal window to edit a custom post type. The form and content is being called and displayed, however the magic in mbfs script and mbfs-form style, and the localization that is called from MBFS\DashboardRenderer::enqueue() needs to be enqueued manually. Since the enqueue() function is private, it can not be called externally. Is there a best practice, or recommended method to enqueue and localize the style and script to make the frontend submission do it's thing?

    Thank you in advance.

    #44087
    PeterPeter
    Moderator

    Hello,

    It looks like the issue in this topic https://support.metabox.io/topic/js-call-mb_frontend_form-shortcode/
    You can create a button and redirect the user to the frontend form page to edit the post.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.