=== LearnDash - Slack ===
Contributors: d4mation, joelworsham
Requires at least: 4.3.0
Requires PHP: 5.3.0
Tested up to: 6.0.1
Requires LearnDash: 2.4.0
LearnDash tested up to: 4.3.0.2
Stable tag: 1.4.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Adds Slack functionality to LearnDash LMS.

== Description ==

LearnDash Slack allows for e-learning site owners to configure detailed notifications from their WordPress site to their team’s Slack channels. With this tool, everything that takes place on a LearnDash site from new user registrations to quiz completions, can now be configured to trigger a completely customizable alert into any Slack channel.

== Changelog ==

= 1.4.0 =
- Moves the License Field to a sub-page under LearnDash LMS -> Settings -> Slack -> Licensing as the LearnDash Hub Plugin (automatically installed when updating to LearnDash v4.3.0.2) removes the LMS License Tab from view

= 1.3.1 =
- Fixes incompatibility with the Quiz Complete/Pass/Fail triggers and LearnDash versions 3.5.1.1 - 3.6.0.2.
- Updates our Licensing and Support module to the latest version

= 1.3.0 =
- Previously, all %timestamp% replacements would use UTC as the timezone. Now it will respect the timezone set for your website.
- Fixes an undefined index notice when creating new Notifications
- Fixes a deprecated PHP warning in the upgrade routine
- Update Licensing and Support module to the latest version
  - Now the Changelog will show directly within your website

= 1.2.6 =
- Fix issue where the Groups field wasn’t showing for some triggers, causing the notification to silently bail before sending
- Fixes a PHP Notice for the usage of date_default_timezone_set()

= 1.2.5 =
- Fix issue where LearnDash v3.x’s page header would overlap our Notification Settings Modal
- Fix issue where the Default Webhook URL and Timestamp Format fields would sometimes not save correctly

= 1.2.4 =
- Add %timestamp% to Topic Complete and Lesson Complete Triggers
- Remove Course Point Related Merge Tags from Lesson, Topic, and Quiz Triggers where they did not do anything

= 1.2.3 =
- Quiz Triggers: Adds %questions_pending_grading% Replacement Text so that any Questions pending manual Grading can have Edit Links for them added to the Slack Notification.
- Updates our Licensing and Support module to the latest version

= 1.2.2 =
- Show the %course_name% and %course_link% merge tags for the Assignment Upload trigger
- Fixes Course Point-related Merge Tags for Expiring Courses
Uses LearnDash’s new methods for obtaining Course Settings
- Added a checkbox below the License Key field at LearnDash LMS -> Settings -> LMS License to opt-in to Beta Releases.

= 1.2.1 =
- Fixes PHP error on upgrade

= 1.2.0 =
- Groups are now supported for any Trigger having to do with a Student (Most of the Triggers)
  - The “Group” Field does not show if no Groups exist
- LearnDash Gradebook integration
  - Adds itself into the Quiz Triggers, Assignment Triggers, and a new Trigger is added for adding manual grades to the Gradebook
  - Requires LearnDash Gradebook v1.2.0 or higher
- Multiple Webhooks Support. You can now save multiple Webhooks URLs and assign them Names to quickly access within your Notifications via a Dropdown. This helps you keep straight which Notifications are going where if you’re using multiple Webhooks to send to a completely different Slack Team for example.
  - Any previously defined Webhook URLs will be copied into the new system. Their Names will match the Notification Identifier of the first Notification that it finds using it.
- Added the ability to select multiple items from Dropdowns when making a Notification
  - You can also exclude results from most of these if you choose “All”
- All the Webhook URL fields and the Timestamp Format field save automatically once you click outside of them. A little icon will appear to indicate it is saving, and it will flash green briefly once saved, similarly to how the Notifications do.
- Textarea for Notification Message now auto-expands as you type
When editing a Notification, hitting “Back” in your Browser will ask you for confirmation. This is mostly helpful on MacBooks or other devices with swipe gestures that are easy to accidentally use.
- Support Form has been added
  - Support Form is on the “LMS License” page
- Markdown now allowed within Notification pre-text and text
- %points_earned% and %points_possible% added for Assignment Triggers
- Delete Button now matches Admin Theme
- Labels in the Notification Form now show above the fields instead of below
- Fixes bug with detecting Active/Valid Notification status
- Fixed a bug where defining an alternate Webhook for a Notification would use the Default Webhook instead

= 1.1.0 =
- New Notification creation workflow
  - All of your old Notifications are preserved
- LearnDash v2.4 support
- Course Points Merge Tags are added if LearnDash version is greater than or equal to v2.4
  - %awarded_course_points%
  - %student_course_points%
  - %access_course_points%
- Text Domain is no longer a Constant
- Ampersands don’t break Notifications if they are in any of the Message Fields

= 1.0.6 =
- Update Plugin Updater to Latest Version.

= 1.0.5 =
- Prevents a PHP Error from showing for Non-Admin Users.

= 1.6.2 =
- Adds Gradebook ID to ld_gb_gradebook_data Filter
- Adds ld_gb_gradebook_list_table_grade_display Filter
- Adds ld_gb_get_user_grade Filter which allows overriding the returned value of ld_gb_get_user_grade() before anything is processed

= 1.0.4 =
- Notifications were able to cancel each other out. Now they no longer do.
  - Example: A Notification for all Completed Quizzes would get canceled by a Failed Quiz Notification that wasn’t being triggered by the correct Quiz.

= 1.0.3 =
- Fixed an issue where Notifications would send when they weren’t supposed to.
  - Example: A Notification for Failed Quizzes that was set to only send for a specific Quiz would instead send for all Quizzes.

= 1.0.2 =
- Fixed potential fatal error if there are no Quizzes available

= 1.0.1 =
- Included translation files
- Added help text and resource link for Webhook URL setting

= 1.0.0 =
- Initial release
