Title: Default role assignment
Last modified: December 30, 2018

---

# Default role assignment

 *  Resolved [mrwassen](https://wordpress.org/support/users/dwl003/)
 * (@dwl003)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/default-role-assignment/)
 * Hi Pippen,
 * Great plugin – thanks!
 * One feature request (and/or request for workaround): I would like to be able 
   to automatically assign a role when a new page or post is created, e.g. all posts
   should by default be assigned to the “Subscriber” role. To keep things simple
   this could apply to standard pages and posts only.
 * Alternatively, would you be able to let me know the “hook” I can use to put an
   action in functions.php of my child theme to automate this?
 * Any help appreciated.
 * Thanks
 * Dennis

Viewing 1 replies (of 1 total)

 *  Moderator [Pippin Williamson](https://wordpress.org/support/users/mordauk/)
 * (@mordauk)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/default-role-assignment/#post-11038865)
 * Hi Dennis!
 * This isn’t something we currently support.
 * If you wanted to add it, you can take a look at the metabox.php file inside of
   the plugin to see how that information is set up and stored.
 * Using the `save_post` hook, you can add the necessary meta values anytime a post
   is created.

Viewing 1 replies (of 1 total)

The topic ‘Default role assignment’ is closed to new replies.

 * ![](https://ps.w.org/restrict-content/assets/icon.svg?rev=3529325)
 * [Membership Plugin - Kadence Memberships](https://wordpress.org/plugins/restrict-content/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/restrict-content/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/restrict-content/)
 * [Active Topics](https://wordpress.org/support/plugin/restrict-content/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restrict-content/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restrict-content/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Pippin Williamson](https://wordpress.org/support/users/mordauk/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/default-role-assignment/#post-11038865)
 * Status: resolved