Instantly share code, notes, and snippets.

Embed
What would you like to do?
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