Skip to content

Instantly share code, notes, and snippets.

@dshanske
Created December 8, 2017 14:06
Show Gist options
  • Save dshanske/2c0963337564024778893967bcd31afa to your computer and use it in GitHub Desktop.
Save dshanske/2c0963337564024778893967bcd31afa to your computer and use it in GitHub Desktop.
Simple Plugin to Change Post Formats
/**
* Post Kinds Custom Post Format Change
* Plugin Name: Post Kinds Custom Post Format
* Plugin URI:
* Description: Change Post Kind to Post Format Mapping
* Version: 0.0.1
* Author: David Shanske
* Author URI: https://david.shanske.com
*/
function pk_change_read_format( $kinds ) {
$kinds[ 'read' ][ 'format' ] = '';
return $kinds;
}
apply_filters( 'kind_info', 'pk_change_read_format', 10 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment