I am trying to load the frontend submission shortcode within the PHP of an ajax request, using echo do shortcode().
The issue appears to be permissions related to the fact it's an ajax request.
For testing, this is a custom post type, User Role Manager has every permission granted, the test user is logged in and the author of the post. But still, when called via an ajax request, the MB shortcode returns "You are not allowed to edit this post".
Is there anything I can do here?
Some background to why I need this.
In another post I had asked how I could change the ID of the generated HTML code from a Frontend Submission shortcode, so I could have multiple on the same page. Because I have multiple posts be able to edit via frontend. I was told this is not a good idea.
So I thought a solution would be to call the form via ajax.
I don't see the need for the restrictive permissions here. Perhaps the solution is to hack MB plugin itself to remove them?