Skip to content

Instantly share code, notes, and snippets.

@ianmjones
Created June 17, 2015 04:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianmjones/4995b70f6046a9b5ddd7 to your computer and use it in GitHub Desktop.
Save ianmjones/4995b70f6046a9b5ddd7 to your computer and use it in GitHub Desktop.
A tiny little article plugin to demo Extended CPTs.
<?php
/**
* @link https://deliciousbrains.com/blog/
* @since 1.0
* @package Pixie_Article
*
* @wordpress-plugin
* Plugin Name: Pixie Article
* Plugin URI: https://deliciousbrains.com/blog/
* Description: A tiny little article plugin to demo Extended CPTs.
* Version: 1.0
* Author: ianmjones
* Author URI: https://profiles.wordpress.org/ianmjones
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: pixie-article
* Domain Path: /languages
* Network: False
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
require_once( 'extended-cpts/extended-cpts.php' );
register_extended_post_type( 'pixie-article' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment