Created
December 11, 2011 06:19
-
-
Save jmdodd/1458820 to your computer and use it in GitHub Desktop.
Set custom post type and taxonomy terms with Ozh' Tweet Archiver
This file contains hidden or 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 | |
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