Skip to content

Instantly share code, notes, and snippets.

@beaulebens
Last active December 23, 2015 19:29
Show Gist options
  • Save beaulebens/6683132 to your computer and use it in GitHub Desktop.
Save beaulebens/6683132 to your computer and use it in GitHub Desktop.
<?php
add_action( 'keyring_post_imported', function( $post_id, $service ) {
if ( 'twitter' === $service ) {
set_post_format( $post_id, 'status' );
}
}, 10, 2 );
@beaulebens
Copy link
Author

Create a new plugin that contains this, or drop the code snippet into your theme's functions.php or something.

Completely untested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment