=== Plugin Name === Contributors: vsmash Donate link: http://www.velvary.com.au/vanilla-beans/wordpress/slack-hooker/ Tags: slack, webhook, message, api, alerts Requires at least: 3.4 Tested up to: 6.2 PHP Tested up to: 8.1 Stable tag: 5.2.9 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Notify one or more slack, mattermost or other endpoints with configured webhooks for Wordpress events. Notifications for plugin installs and updates, page views, error messages, signups, woocommerce or anything you like with fully customizable shortcodes, hooks and filter functions. == Description == *Automated notifications from your Wordpress * to your Slack / Mattermost application channels and webhooks. There is no limit to the ways you may integrate this plugin. It supports all other Vanilla Bean plugins and is available for under-the-bonnet use as well as shortcode access. = Some shortcode examples: = `[slackhooker text="Here is a message from my wordpress"]` or `[slackhooker text="Here is a message" channel="general" username="My Wordpress"]` or `[slackhooker text="Here is a message" channel="https://myorg.slack.com/services/xxoxlsodsfsfsdfds#channelname" username="My Wordpress"]` Messages are queued last in the PHP process to insure your other page processing is not interrupted, but you can override: `[slackhooker text="Here is a message from my wordpress." sendnow="true"]` Multiple or custom Webhooks supported `[slackhooker text="Here is a message to multiple webhooks" alsoto="https://hooks.slack.com/services/T03TDTbUF/BBG9SQV6X/abcdefghij,https://hooks.slack.com/services/T03TDTbUF/BBG9SQV6X/abcxxxxxxx"]` = Programmatic Examples = `if(function_exists('\VanillaBeans\SlackHooker\vbean_slackhooker')){ \VanillaBeans\SlackHooker\vbean_slackhooker('Here is my notification'); }` `if(function_exists('\VanillaBeans\SlackHooker\vbean_slackhooker')){ \VanillaBeans\SlackHooker\vbean_slackhooker('Here is my notification','mychannel','Username',':specific_icon:'); }` `if(function_exists('\VanillaBeans\SlackHooker\vbean_slackhooker')){ \VanillaBeans\SlackHooker\vbean_slacknotify(array('text'=>'Here is my notification','icon'=>':open_mouth:')); }` There are defaults for all except the message. You can specify: `* *text* - required. This is your message * *endpoints* - override defaults with a comma separated list of endpooints with optional channel and alert eg: endpoints='https://endpoint.com#channel#here" * *channel* - defaults to 'general' or your admin default specified channel - depracated * *username* - the identity you would like displayed as the sender in the channel * *icon* - any of the available emoji icons in the slack system * *sendnow* - true or false. Defaults to false. True means that the message would be executed at the time it is called rather than at the end of page load. = Contact = We can be found at: * (http://www.velvary.com.au/contact-us) * Twitter: @VelvaryVanilla * E: info@ or support@ velvary.com.au == Installation == Unzip into your plugins directory, install directly from wordpress plugins site. == Screenshots == 1. Example of wordpress monitoring 2. Admin instruction page 3. Another example of wordpress monitoring 4. Screenshot of default options 5. Screenshot of Notification choices == Changelog == = 5.2.7 = - Fixed versioning inconsistency = 5.2.0 = - Added support for email notifications = 5.1.7 = - Admin menu bugfix = 5.1.6 = - tested with wordpress 6.2 = 5.1.3 = - fixed double up in get_url() string replace = 5.1.2 = - fixed default value for fields - fixed missing admin menu item = 5.1.1 = - fixed path error for mce plugin = 5.1.0 = - Cron messages made optional for when cron not supported Another major overhaul. Previous settings not carried forward. = 5.0.0 = - Notification overrides can now be set for each endpoint - Endpoints can now have alerts such as or or added to them by adding #here or #channel or #everyone to the end of the endpoint url - Improved admin layout - Tested on PHP8.1 - Tested on Wordpress 6.1 Major overhaul. Previous settings not carried forward. = 4.0.5 = - bugfix naming conflict in javascript - bugfix path for css = 4.0.3 = - bugfix for mattermost - bugfix to textdomain = 4.0.0 = - MAJOR OVERHAUL Rewrite - More alerts added for posts - Customisable endpoints for all alerts = 3.30 = - added support for endpoints in channels = 3.22 = - bugfix for post status change = 3.21 = - tested against wordpress 6.1 and php 8.1 = 3.10 = - added site url to notificaitons - added post/page published notifications = 3.05 = - added code for system plugin updater = 3.04 = - Broken Image fix = 3.03 = - Cosmetic fix = 3.02 = - Added woocommerce sales hook = 3.00 = - Added compatibility with Mattermost = PREVIOUS VERSIONS REMOVED = - Added current site to default user = 2.60 = - Added current user to plugin alerts = 2.55 = - Added toggle option for help = 2.47 = - Enabled inheritance of