I thought htis would be simple, but I cannot figure out how to get the current post_id within the rwmb_meta_boxes filter.
I need the post ID to pass to a function that will create the placeholder for the select box based on what user role of the author of the post. Thus, I need the post_id to determine the author_id to get the author role.
I create the options for the field using a function that calls current_user_can and it works just fine, so I know that I should be able to grab the post id somehow… I’m just missing it somewhere.
Things I have tried are below:
What am I missing here?
Thanks for the help!
You must be logged in to reply to this topic.