Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name: My Custom Post Type
- Description: Minimal code to add custom post type in a plugin
- Version: 0.01
- Author: Myself
- */
- add_action( 'init', 'my_custom_plugin_create_post_type' );
- function my_custom_plugin_create_post_type() {
- register_post_type( 'team_member',
- 'public' => true,
- 'has_archive' => true,
- /* more settings for your custom post type here */
- )
- );
Add Comment
Please, Sign In to add comment