custom post types – Show CPT only if postmeta match useremail

Question

Please, someone can help me to display Worpress CPT only if postmeta value = current_user_mail.

i had a cpt with postmeta value (user email) … i wish to prevent permalink hack post_id…
in simple word..
if postmeta = current_user_email show it otherwise redirect to /account.

some help please? i’m using JetEngine for CPT.
P.S. i’d tryed to use user role editor pro but it have too much feature for my scenario.

thanks you

0
Fabio 5 months 2022-04-02T13:51:12-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse