Hi Guys,
I try to use the function admin_post_{action}
in the frontend (https://codex.wordpress.org/Plugin_API/Action_Reference/admin_post_(action)). I want to generate a pdf when a user send a contact form.
In “General Options” > “Member Profile Modifications” I choosed the option Yes (redirect to Login Welcome Page; locking all /wp-admin/ areas) then the admin_post_ works only for administrators and not for others roles.
Do you know a way to fire the admin_post_ hook with this setting?
I appreciate your feedback or recomendations .
Carlos