Set a post format for your IFTTT-created posts via a post format category.
FAQ
How do I set the post type with this plugin?
- This was added in version 0.1.1. To set the new post to a custom post type, you can do so by setting the category in IFTTT to one that matches this pattern:
ifttt-posttype-{post_type_slug}
. So if you wanted to create new WordPress pages with IFTTT, you would add the ifttt-posttype-page
category.
How can I change the taxonomy for the IFTTT categories?
- As of 0.1.3 You can do so by specifying a
ifttt-taxonomy-{taxonomy_slug}
category in the IFTTT category field. Will only work if the taxonomy_slug
is a valid registered taxonomy. You can also hook into the ifttt_pfpt_taxonomy_to_save_as
filter like so:
function ifttt_pfpt_save_as_custom_taxonomy( $taxonomy ) {
$taxonomy = ‘custom-taxonomy-slug’;
return $taxonomy;
}
add_filter( ‘ifttt_pfpt_taxonomy_to_save_as’, ‘ifttt_pfpt_save_as_custom_taxonomy’ );
I don’t like the `ifttt-*` categories hanging around.
-
You can delete them by adding the following snippet to your theme’s functions.php file or as an mu-plugin:
php
add_filter( 'ifttt_pfpt_delete_ifttt_cats', '__return_true' );
??
ChangeLog
0.1.3
- Added the ability to set the taxonomy via the special
ifttt-taxonomy-{taxonomy_slug}
category.
- Added the ability to delete the
ifttt-*
terms with the ifttt_pfpt_delete_ifttt_cats
filter.
0.1.2
- New filter,
ifttt_pfpt_taxonomy_to_save_as
, to override which taxonomy the terms should be saved to (if not category).
- New action,
ifttt_pfpt_set_post_format
, called when a ifttt post format has been found and set.
- New action,
ifttt_pfpt_set_post_type
, called when a ifttt post type has been found and set.
- New action,
ifttt_pfpt_handle_format_post_type
, called when either a ifttt post format or ifttt post type has been found and set.
0.1.1
- Add custom post type support
0.1.0