Plugin Directory

Changeset 2110825


Ignore:
Timestamp:
06/23/2019 09:28:41 AM (7 years ago)
Author:
shirgans
Message:

Updated readme file

Location:
transmit-to-slack/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • transmit-to-slack/trunk/README.md

    r2110813 r2110825  
    1 # transmit-to-slack
    2 Send WooCommerce orders to Slack
     1=== Transmit to Slack ===
     2Contributors: shirgans
     3Tags: slack, woocommerce, orders, api
     4Donate link: https://www.paypal.me/shirgans
     5Requires at least: 4.5.0
     6Tested up to: 5.2
     7Requires PHP: 5.2.4
     8Stable tag: 3.6.4
     9License: GPLv3 or later
     10License URI: http://www.gnu.org/licenses/gpl-3.0.html
    311
    4 Send WooCommerce Orders to Slack
    5 ======
     12Instantly sends new orders from WooCommerce to your desired Slack channel.
    613
    7 » **Getting Started**
    814
    9 Step 1: Create Slack App
    10 ------------------------
     15= Screenshots =
     16
     17- This is how new orders shows on Slack (Ver. 1.0)
     18
     19
     20== Getting Started ==
     21
     22= Step 1: Create Slack App =
     23
    1124- Go to Slack APIs: https://api.slack.com/apps/ and login
    1225- Create a new app
     
    2235- Copy this URL
    2336
    24 Step 2: Add code
    25 ----------------
     37= Step 2: Add code =
    2638- Add the following code to your functions.php.
    27 
    28 `add_filter('transmit_to_slack_webhook_url', 'slack_webhook_url');`
    29 
    30 `function slack_webhook_url(){`
    31 
    32 `return 'paste Webhook URL here';`
    33    
    34 `}`
    35 
    3639- change "paste Webhook URL here" to the copied URL (from step 1)
    3740
    38 Contribute on GitHub
    39 --------------------
     41add_filter('transmit_to_slack_webhook_url', 'slack_webhook_url');
     42function slack_webhook_url(){
     43    return 'paste Webhook URL here';
     44}
     45
     46== Contribute on GitHub ==
    4047You are welcome to contribute this open source project on GitHub:
    4148https://github.com/shirgans/transmit-to-slack
     49
     50== Changelog ==
     51= 1.0.0 - 2019-06-23 =
     52* First version
  • transmit-to-slack/trunk/reademe.txt

    r2110819 r2110825  
    44Donate link: https://www.paypal.me/shirgans
    55Requires at least: 4.5.0
    6 Tested up to: 5.2.2
     6Tested up to: 5.2
    77Requires PHP: 5.2.4
    8 Stable tag: 5.2.2
     8Stable tag: 3.6.4
    99License: GPLv3 or later
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
    1111
    12 == Description ==
     12Instantly sends new orders from WooCommerce to your desired Slack channel.
    1313
    14 Instantly sends new orders from WooCommerce to your desired Slack channel.
    1514
    1615= Screenshots =
     
    1817- This is how new orders shows on Slack (Ver. 1.0)
    1918
     19
     20== Getting Started ==
     21
     22= Step 1: Create Slack App =
     23
     24- Go to Slack APIs: https://api.slack.com/apps/ and login
     25- Create a new app
     26- Give it a name (WC Orders, for example)
     27- Choose the workspace you would like to integrate with
     28- Under “Building Apps for Slack” click on “Incoming Webhooks”
     29- At the top - Activate Incoming Webhooks
     30- Then, at the bottom, click on the button to add new webhook
     31- Choose the channel you wish the orders will show in
     32- You can create a new channel on slack and then refresh that page, so you can select the channel you just created
     33- Click Install
     34- You will see a new webhook URL, something that starts like this: https://hooks.slack.com/services/T8KD1LQ......
     35- Copy this URL
     36
     37= Step 2: Add code =
     38- Add the following code to your functions.php.
     39- change "paste Webhook URL here" to the copied URL (from step 1)
     40
     41add_filter('transmit_to_slack_webhook_url', 'slack_webhook_url');
     42function slack_webhook_url(){
     43    return 'paste Webhook URL here';
     44}
     45
     46== Contribute on GitHub ==
     47You are welcome to contribute this open source project on GitHub:
     48https://github.com/shirgans/transmit-to-slack
     49
    2050== Changelog ==
    2151= 1.0.0 - 2019-06-23 =
Note: See TracChangeset for help on using the changeset viewer.