{"id":46969,"date":"2015-03-25T23:48:04","date_gmt":"2015-03-25T23:48:04","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/slack-integration\/"},"modified":"2015-07-17T23:37:23","modified_gmt":"2015-07-17T23:37:23","slug":"slack-integration","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/slack-integration\/","author":7751530,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.7.1","stable_tag":"1.7.1","tested":"4.2.39","requires":"3.6.1","requires_php":"","requires_plugins":"","header_name":"Slack Integration for WordPress","header_author":"Eray Alakese","header_description":"","assets_banners_color":"d8d5d8","last_updated":"2015-07-17 23:37:23","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/goo.gl\/KTmqNL","header_plugin_uri":"http:\/\/wordpress.org\/plugins\/slack-wordpress\/","header_author_uri":"http:\/\/erayalakese.com\/","rating":3,"author_block_rating":0,"active_installs":10,"downloads":1808,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":"2","2":0,"3":0,"4":0,"5":"2"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1137671","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1137671","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1137671","resolution":"1544x500","location":"assets"},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1137671","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.0.2","1.1.0","1.1.1","1.2.0","1.3.0","1.3.1","1.4.0","1.4.1","1.4.2","1.5.0","1.6.0","1.6.1","1.7.0","1.7.1"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[1556,5707,597,1159,3565],"plugin_category":[41,58],"plugin_contributors":[88273],"plugin_business_model":[],"class_list":["post-46969","plugin","type-plugin","status-closed","hentry","plugin_tags-api","plugin_tags-chat","plugin_tags-integration","plugin_tags-notification","plugin_tags-slack","plugin_category-communication","plugin_category-user-management","plugin_contributors-erayalakese","plugin_committers-erayalakese"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/slack-integration_d8d5d8.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>You can contribute to this project on <a href=\"https:\/\/github.com\/erayalakese\/slack-wordpress\" title=\"Slack WordPress Integration\">GitHub<\/a>. <strong>And yes you can send your new feature requests to <a href=\"https:\/\/github.com\/erayalakese\/slack-wordpress\/issues\">here<\/a><\/strong>.<\/p>\n\n<p>This plugin sends notifications when<\/p>\n\n<ol>\n<li>a new post\/page\/custom post type published<\/li>\n<li>a post\/page\/custom post type updated<\/li>\n<li>a post\/page\/custom post type deleted<\/li>\n<li>a new comment pending approval <\/li>\n<li>a new category created <\/li>\n<li>a new category deleted<\/li>\n<li>a new ping received <\/li>\n<li>a new trackback received <\/li>\n<li>theme switched<\/li>\n<li>a new user registered<\/li>\n<li>a user is removed<\/li>\n<\/ol>\n\n<h4>FOR DEVELOPERS<\/h4>\n\n<p>You can send custom Slack notifications within your theme or plugin . To achieve this, <strong>slack-wordpress<\/strong> declares a global variable <code>$slack_plugin<\/code> for you. You can send notification like this :<\/p>\n\n<pre><code> &lt;?php\n global $slack_plugin;\n $channel_to_post = 'CXXXXXXXX';\n $msg = 'test';\n $slack_plugin-&gt;getApi()-&gt;publish_post($channel_to_post, $msg);\n\n publish_post() returns response of [chat.postMessage](https:\/\/api.slack.com\/methods\/chat.postMessage) , you can look at **Response** section. Also you can check **Formatting** section to formatting your message.\n<\/code><\/pre>\n\n<h4>AUTHOR<\/h4>\n\n<ul>\n<li><a href=\"http:\/\/eray.rocks\">Eray Alakese<\/a><\/li>\n<\/ul>\n\n<h4>CONTRIBUTORS<\/h4>\n\n<ul>\n<li><a href=\"https:\/\/github.com\/wormeyman\">wormeyman<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/Cartor\">Cartor<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/likol\">likol<\/a><\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Create a new Slack Application on <a href=\"https:\/\/api.slack.com\/applications\/new\" title=\"New Slack Application\">here<\/a><\/li>\n<li>Get <strong>Client ID<\/strong> and <strong>Client Secret<\/strong> codes from <strong>My Apps<\/strong> page.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Add <strong>Client ID<\/strong> and <strong>Client Secret<\/strong> codes on <em>Settings &gt; Slack<\/em> page. Click <strong>Step 1 : SAVE<\/strong> button.<\/li>\n<li>Click <strong>Step 2:LINK TO SLACK<\/strong> button.<\/li>\n<li>Now you can configure Slack on <em>Settings &gt; Slack<\/em> page.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.7.1<\/h4>\n\n<ul>\n<li>Bug #26 fixed<\/li>\n<\/ul>\n\n<h4>1.7.0<\/h4>\n\n<ul>\n<li>Post excerpt bug fixed. Bug #21<\/li>\n<li>Now sending notifications when a user logged in.<\/li>\n<li>Some little design problems solved.<\/li>\n<\/ul>\n\n<h4>1.6.1<\/h4>\n\n<ul>\n<li>Fix for bug #18 . Wordpress Jetpack plugin conflict solved.<\/li>\n<\/ul>\n\n<h4>1.6.0<\/h4>\n\n<ul>\n<li>Post excerpt support for all post types<\/li>\n<\/ul>\n\n<h4>1.5.0<\/h4>\n\n<ul>\n<li>Major file_get_contents() bug fixed<\/li>\n<li>Custom Post Type support<\/li>\n<\/ul>\n\n<h4>1.4.1<\/h4>\n\n<ul>\n<li>Ready for WordPress 4.2<\/li>\n<\/ul>\n\n<h4>1.4.0<\/h4>\n\n<ul>\n<li>Critical bug fixed<\/li>\n<li>'Page' post type support<\/li>\n<\/ul>\n\n<h4>1.3.0<\/h4>\n\n<ul>\n<li>Support for private channels (groups)<\/li>\n<li>Different notifications to different channels for new post publish and post update<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Provided a global variable so developers can send custom Slack notifications within their plugin \/ theme<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Critical bug fix<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Version number problem solved.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>First stable tag. Hello World !<\/li>\n<\/ul>","raw_excerpt":"This plugin sends notifications to any Slack channel (public or private) when an event triggered in WordPress.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/46969","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=46969"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/erayalakese"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=46969"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=46969"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=46969"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=46969"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=46969"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=46969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}