{"id":27508,"date":"2014-01-28T03:29:17","date_gmt":"2014-01-28T03:29:17","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/ifttt-post-formats\/"},"modified":"2016-08-16T15:43:48","modified_gmt":"2016-08-16T15:43:48","slug":"ifttt-post-formats","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/ifttt-post-formats\/","author":6048912,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1.3","stable_tag":"trunk","tested":"4.6.0","requires":"3.1","requires_php":"","requires_plugins":"","header_name":"IFTTT Post Formats & Post Types","header_author":"Jtsternberg","header_description":"","assets_banners_color":"","last_updated":"2016-08-16 15:43:48","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/j.ustin.co\/rYL89n","header_plugin_uri":"http:\/\/dsgnwrks.pro\/plugins\/ifttt-post-formats","header_author_uri":"http:\/\/jtsternberg.com\/about","rating":5,"author_block_rating":0,"active_installs":70,"downloads":7888,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"0.1.3":"<ul>\n<li>Added the ability to set the taxonomy via the special <code>ifttt-taxonomy-{taxonomy_slug}<\/code> category.<\/li>\n<li>Added the ability to delete the <code>ifttt-*<\/code> terms with the <code>ifttt_pfpt_delete_ifttt_cats<\/code> filter.<\/li>\n<\/ul>","0.1.2":"<ul>\n<li>New filter, <code>ifttt_pfpt_taxonomy_to_save_as<\/code>, to override which taxonomy the terms should be saved to (if not category).<\/li>\n<li>New action, <code>ifttt_pfpt_set_post_format<\/code>, called when a ifttt post format has been found and set.<\/li>\n<li>New action, <code>ifttt_pfpt_set_post_type<\/code>, called when a ifttt post type has been found and set.<\/li>\n<li>New action, <code>ifttt_pfpt_handle_format_post_type<\/code>, called when either a ifttt post format or ifttt post type has been found and set.<\/li>\n<\/ul>","0.1.1":"<ul>\n<li>Add custom post type support<\/li>\n<\/ul>","0.1.0":"<ul>\n<li>First Release<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[569,35809,35804,6985,2278],"plugin_category":[],"plugin_contributors":[78223],"plugin_business_model":[],"class_list":["post-27508","plugin","type-plugin","status-publish","hentry","plugin_tags-automation","plugin_tags-if-this-then-that","plugin_tags-ifttt","plugin_tags-post-formats","plugin_tags-post-types","plugin_contributors-jtsternberg","plugin_committers-jtsternberg"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/ifttt-post-formats.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>IFTTT (if this, then that) is one of the coolest web services available, and allows you to connect your different web service accounts to create 'recipes'. An example of a recipe that I have is to create a new WordPress post on my blog whenever I favorite a YouTube video.<\/p>\n\n<p>Unfortunately IFTTT doesn't have a way to specify a post format or a custom post type, so this plugin provides a couple ways to update them.<\/p>\n\n<p>To set the post format, you need to set the category in IFTTT to one of the following categories:<\/p>\n\n<ul>\n<li><code>ifttt-aside<\/code><\/li>\n<li><code>ifttt-gallery<\/code><\/li>\n<li><code>ifttt-link<\/code><\/li>\n<li><code>ifttt-image<\/code><\/li>\n<li><code>ifttt-quote<\/code><\/li>\n<li><code>ifttt-status<\/code><\/li>\n<li><code>ifttt-video<\/code><\/li>\n<li><code>ifttt-audio<\/code><\/li>\n<li><code>ifttt-chat<\/code><\/li>\n<\/ul>\n\n<p>So for my YouTube -&gt; WordPress recipe, I have it adding the 'ifttt-video' category in IFTTT (IFTTT allows you to specify the category for the posts it creates), and voil\u00e0, when it's published, the format has been set.<\/p>\n\n<p>If you want to instead 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: <strong><code>ifttt-posttype-{post_type_slug}<\/code><\/strong>. So if you wanted to create new WordPress pages with IFTTT, you would add the <strong><code>ifttt-posttype-page<\/code><\/strong> category.<\/p>\n\n<p>And finally, if you want the IFTTT categories to be stored as a <em>different<\/em> taxonomy, you can do so by setting the category in IFTTT to one that matches this pattern: <strong><code>ifttt-taxonomy-{taxonomy_slug}<\/code><\/strong>.<\/p>\n\n<p><strong>Note:<\/strong> These speciall <code>ifttt-*<\/code> categories will not actually be set on the post\/page\/object. These are 'special' categories which simply serve as flags for which post format, post-type or taxonomy to send the data to, and they are removed from the list of categories which are actually stored to the post.<\/p>\n\n<p>Hope you find this useful!<\/p>\n\n<p>Feel free to <a href=\"https:\/\/github.com\/jtsternberg\/IFTTT-Post-Formats\">contribute to or fork this plugin on github<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>ifttt-post-formats<\/code> directory to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How do I set the post type with this plugin?<\/dt>\n<dd><ul>\n<li>This was added in version <a href=\"https:\/\/wordpress.org\/plugins\/ifttt-post-formats\/changelog\/\">0.1.1<\/a>. 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: <strong><code>ifttt-posttype-{post_type_slug}<\/code><\/strong>. So if you wanted to create new WordPress pages with IFTTT, you would add the <strong><code>ifttt-posttype-page<\/code><\/strong> category.<\/li>\n<\/ul><\/dd>\n<dt>How can I change the taxonomy for the IFTTT categories?<\/dt>\n<dd><ul>\n<li>As of <a href=\"https:\/\/wordpress.org\/plugins\/ifttt-post-formats\/changelog\/\">0.1.3<\/a> You can do so by specifying a <code>ifttt-taxonomy-{taxonomy_slug}<\/code> category in the IFTTT category field. Will only work if the <code>taxonomy_slug<\/code> is a valid registered taxonomy. You can also hook into the <code>ifttt_pfpt_taxonomy_to_save_as<\/code> filter like so:\nfunction ifttt_pfpt_save_as_custom_taxonomy( $taxonomy ) {\n    $taxonomy = 'custom-taxonomy-slug';\n    return $taxonomy;\n}\nadd_filter( 'ifttt_pfpt_taxonomy_to_save_as', 'ifttt_pfpt_save_as_custom_taxonomy' );<\/li>\n<\/ul><\/dd>\n<dt>I don't like the `ifttt-*` categories hanging around.<\/dt>\n<dd><ul>\n<li><p>You can delete them by adding the following snippet to your theme's functions.php file or as an mu-plugin:<\/p>\n\n<p><code>php\nadd_filter( 'ifttt_pfpt_delete_ifttt_cats', '__return_true' );<\/code><\/p><\/li>\n<\/ul><\/dd>\n<dt>??<\/dt>\n<dd><ul>\n<li>If you run into a problem or have a question, contact me (<a href=\"http:\/\/j.ustin.co\/scbo43\">contact form<\/a> or <a href=\"http:\/\/j.ustin.co\/wUfBD3\">@jtsternberg on twitter<\/a>). I'll add them here.<\/li>\n<\/ul><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1.3<\/h4>\n\n<ul>\n<li>Added the ability to set the taxonomy via the special <code>ifttt-taxonomy-{taxonomy_slug}<\/code> category.<\/li>\n<li>Added the ability to delete the <code>ifttt-*<\/code> terms with the <code>ifttt_pfpt_delete_ifttt_cats<\/code> filter.<\/li>\n<\/ul>\n\n<h4>0.1.2<\/h4>\n\n<ul>\n<li>New filter, <code>ifttt_pfpt_taxonomy_to_save_as<\/code>, to override which taxonomy the terms should be saved to (if not category).<\/li>\n<li>New action, <code>ifttt_pfpt_set_post_format<\/code>, called when a ifttt post format has been found and set.<\/li>\n<li>New action, <code>ifttt_pfpt_set_post_type<\/code>, called when a ifttt post type has been found and set.<\/li>\n<li>New action, <code>ifttt_pfpt_handle_format_post_type<\/code>, called when either a ifttt post format or ifttt post type has been found and set.<\/li>\n<\/ul>\n\n<h4>0.1.1<\/h4>\n\n<ul>\n<li>Add custom post type support<\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>First Release<\/li>\n<\/ul>","raw_excerpt":"Set a post format or post type for your IFTTT-created posts via a post format or post type category.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/27508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=27508"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jtsternberg"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=27508"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=27508"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=27508"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=27508"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=27508"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=27508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}