Skip to content

Instantly share code, notes, and snippets.

View ianmjones's full-sized avatar
Proudly powered by ✨ 🦄 💩 & ☕, mostly ☕

Ian M. Jones ianmjones

Proudly powered by ✨ 🦄 💩 & ☕, mostly ☕
View GitHub Profile
@ianmjones
ianmjones / gist:19019fcb675d4c85b4a3
Created June 18, 2015 04:27
Adding a menu icon to our Extended CPT.
$options = array(
'labels' => $labels,
'menu_icon' => 'dashicons-media-document',
);
register_extended_post_type( 'pixie-article', $options );
@ianmjones
ianmjones / pixie-article.php
Last active August 29, 2015 14:23
A tiny little article plugin to demo Extended CPTs ... with translatable labels and a menu icon.
<?php
/**
* @link https://deliciousbrains.com/blog/
* @since 1.0
* @package Pixie_Article
*
* @wordpress-plugin
* Plugin Name: Pixie Article
* Plugin URI: https://deliciousbrains.com/blog/
@ianmjones
ianmjones / pixie-article.php
Last active August 29, 2015 14:23
A tiny little article plugin to demo Extended CPTs ... with translatable labels.
<?php
/**
* @link https://deliciousbrains.com/blog/
* @since 1.0
* @package Pixie_Article
*
* @wordpress-plugin
* Plugin Name: Pixie Article
* Plugin URI: https://deliciousbrains.com/blog/
@ianmjones
ianmjones / pixie-article.php
Created June 17, 2015 04:22
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/