Last active
August 29, 2015 14:06
-
-
Save enejb/59bd2287f59f181d2821 to your computer and use it in GitHub Desktop.
Add post formats for Jetpack's portfolio post type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Post formats for Jetpack's portfolio | |
* Description: Add post formats to Jetpack's portfolio post type | |
* Version: 1.0 | |
* Author: Enej | |
* License: GPL2 | |
*/ | |
function jetpack_portfolio_add_portfolio_post_formats() { | |
add_post_type_support( 'jetpack-portfolio', 'post-formats' ); | |
} | |
add_action( 'init', 'jetpack_portfolio_add_portfolio_post_formats' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment