custom post types – Show CPT only if postmeta match useremail
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.