class Group_Post_TypeRegisters the cp_group CPT and related meta.
class final
- Full name
Kernowdev\ClanbiteSocialKit\Groups\Group_Post_Type
Constants
| Name | Value | Description |
|---|---|---|
POST_TYPE | 'cp_group' | Post type slug. |
ROLE_ADMIN | 'admin' | Group roles. |
ROLE_EDITOR | 'editor' | |
ROLE_MEMBER | 'member' | |
ROLE_BANNED | 'banned' |
Methods
admin_column_content()Render custom admin column content.admin_columns()Add custom admin columns.get_labels()Get post type labels.get_roles()Get all valid group roles.register_meta_key()Register a meta key for the group post type.register_meta()Register group meta keys.register_post_type()Register the cp_group post type.register()Register hooks.sanitize_attendees_visibility()Sanitize attendees visibility.sanitize_join_mode()Sanitize join mode.
Defined in inc/Groups/Group_Post_Type.php