Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'init', function() {
- register_post_type( 'faculty', [
- 'label' => 'Faculty',
- 'supports' => [ 'title', 'editor', 'custom-fields' ],
- 'public' => true,
- 'show_in_graphql' => true,
- 'graphql_single_name' => 'faculty',
- 'graphql_plural_name' => 'facultyMembers'
- ] );
- } );
Add Comment
Please, Sign In to add comment