Changes between Version 1 and Version 2 of Ticket #22981, comment 16
- Timestamp:
- 12/19/2012 04:28:18 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22981, comment 16
v1 v2 2 2 > I haven't tested for functionality yet, but an additional filter for post_type in [attachment:wp-twitter-importer.2.zip], defaulting to `post`, would be ideal for maximum extendability. 3 3 4 You can set the post type using the `twitter _import_post_data` filter, which filters the entire array passed to `wp_insert_post()`. Use something like this:4 You can set the post type using the `twitter-import-post-data` filter, which filters the entire array passed to `wp_insert_post()`. Use something like this: 5 5 {{{ 6 6 function twitter_import_post_data( $post ) {