Skip to content

Commit 798cbf7

Browse files
authored
Merge pull request #37 from jazzsequence/feature/36-slack-integration
Feature/36 slack integration
2 parents 1ddabe7 + 3c229ec commit 798cbf7

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

.yo-rc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "Recipe Box",
44
"homepage": "https://jazzsequence.com",
55
"description": "Easily store and publish recipes in WordPress.",
6-
"version": "0.3",
6+
"version": "0.3.1",
77
"author": "Chris Reynolds",
88
"authoremail": "[email protected]",
99
"authorurl": "https://jazzsequence.com",
@@ -14,4 +14,4 @@
1414
"prefix": "rb",
1515
"year": 2016
1616
}
17-
}
17+
}

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
**Tags:**
55
**Requires at least:** 4.4
66
**Tested up to:** 4.8
7-
**Stable tag:** 0.3
7+
**Stable tag:** 0.3.1
88
**License:** GPLv3
99
**License URI:** http://www.gnu.org/licenses/gpl-3.0.html
1010

@@ -27,6 +27,10 @@ Easily store and publish recipes in WordPress.
2727

2828
## Changelog ##
2929

30+
### 0.3.1 ###
31+
* added support for [Slack](https://wordpress.org/plugins/slack/) plugin to allow recipes to post to Slack.
32+
* fixed a javascript bug (props [@igmoweb](https://github.com/igmoweb)).
33+
3034
### 0.3 ###
3135
* added moar api support
3236
* added ability and admin page to pull recipes from remote Recipe Box site using the API

includes/class-recipe.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ public function hooks() {
8686
add_action( 'save_post', [ $this, 'save_ingredient' ], 10, 3 );
8787
add_action( 'admin_enqueue_scripts', [ $this, 'admin_enqueue_scripts' ], 9999 );
8888
add_filter( 'rest_prepare_rb_recipe', [ $this, 'filter_recipes_json' ], 10, 2 );
89+
90+
// Allow the Slack Integration plugin to include the recipe post type.
91+
add_filter( 'slack_event_transition_post_status_post_types', function( $post_types ) {
92+
return array_merge( $post_types, [ 'rb_recipe' ] );
93+
} );
8994
}
9095

9196

recipe-box.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Recipe Box
44
* Plugin URI: https://jazzsequence.com
55
* Description: Easily store and publish recipes in WordPress.
6-
* Version: 0.3
6+
* Version: 0.3.1
77
* Author: Chris Reynolds
88
* Author URI: https://jazzsequence.com
99
* Donate link: https://jazzsequence.com

0 commit comments

Comments
 (0)