Skip to content

Instantly share code, notes, and snippets.

@jmdodd
Created December 11, 2011 06:19
Show Gist options
  • Save jmdodd/1458820 to your computer and use it in GitHub Desktop.
Save jmdodd/1458820 to your computer and use it in GitHub Desktop.
Set custom post type and taxonomy terms with Ozh' Tweet Archiver
<?php
if ( ! function_exists( 'ucc_ozh_ta_insert_tweets_post' ) ) {
function ucc_ozh_ta_insert_tweets_post( $data ) {
// Replace values of [tax_input][category] and [post_type] with appropriate values.
$data['tax_input']['category'] = '1,2';
$data['post_type'] = 'tweet';
return $data;
} }
add_filter( 'ozh_ta_insert_tweets_post' , 'ucc_ozh_ta_insert_tweets_post' );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment