Skip to content

Instantly share code, notes, and snippets.

@w3guy
Created January 16, 2015 11:19
Show Gist options
  • Save w3guy/2610878d7acde072d037 to your computer and use it in GitHub Desktop.
Save w3guy/2610878d7acde072d037 to your computer and use it in GitHub Desktop.
webpaint
/*
Plugin Name: Site specific plugin for ProfilePress
Plugin URI: http://w3guy.com
Description: Dummy / site specific plugin
Author: Agbonghama Collins
Version: 1.0
Author URI: http://w3guy.com
*/
function pp_demo_post_type_init() {
$args = array(
'public' => true,
'label' => 'Demos',
'taxonomies' => array('category', 'post_tag')
);
register_post_type( 'demo', $args );
}
add_action( 'init', 'pp_demo_post_type_init' );
function pp_documentation_post_type() {
$args = array(
'public' => true,
'label' => 'Documentation',
'taxonomies' => array('category', 'post_tag')
);
register_post_type( 'documentation', $args );
}
add_action( 'init', 'pp_documentation_post_type' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment