How can I prevent authors from changing custom post type fields?
I’ve created a WP site with a membership database using a custom post type. There is a post for each member than contains information about the member. When a user signs up, the site admin creates a WP user for that member and makes the new user the author of the corresponding post. This way, the member can update his or her membership info.
The problem is that there is some fields–such as the expiration date–that I don’t want the member to be able to edit. So, I’m trying to figure out how to remove those fields from the edit screen, much the same way remove_post_type_support() removes the title, editor, etc. from the edit screen?
Can anyone give me a clue as how to do this?
- The topic ‘How can I prevent authors from changing custom post type fields?’ is closed to new replies.