=== Edwiser Bridge - WordPress Moodle LMS Integration ===
Contributors: WisdmLabs
Tags: Moodle, Moodle ecommerce, WordPress Moodle, Sell Moodle Courses, LMS Integration, Moodle Integration, Moodle WordPress, WP Moodle, eLearning, WooCommerce
Requires at least: 5.6
Tested up to: 6.0.2
Stable tag: trunk
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html


Edwiser Bridge integrates WordPress with Moodle LMS & provides an easy option to import and sell Moodle courses using WordPress.



 ==  Description ==

Edwiser Bridge - The #1 WordPress and Moodle Integration plugin that provides a robust platform to sell Moodle courses online.

Are you a Moodle user, who creates courses and wants a robust integration with WordPress/WooCommerce to sell them.
Then you are at the right place Edwiser Bridge is the only WordPress plugin that provides stable and robust integration between the two platforms.

Edwiser Bridge provides the necessary platform for you to sell your Moodle courses through default payment gateway PayPal.

In order to extend its functionality and create a complete automated eCommerce solution to sell your Moodle, you got to include following plugins in your WordPress site,

* <a href="https://edwiser.org/bridge/extensions/woocommerce-integration/?utm_source=WordPress&utm_medium=landingpage&utm_campaign=EBFreePlugin"> Edwiser Bridge - WooCommerce Integration extension </a>
* <a href="https://edwiser.org/bridge/extensions/bulk-purchase/?utm_source=WordPress&utm_medium=landingpage&utm_campaign=EBFreePlugin"> Edwiser Bridge - Bulk Purchase extension </a>
* <a href="https://edwiser.org/bridge/extensions/single-sign-on/?utm_source=WordPress&utm_medium=landingpage&utm_campaign=EBFreePlugin"> Edwiser Bridge - Single Sign On extension </a>
* <a href="https://edwiser.org/bridge/extensions/selective-synchronization/?utm_source=WordPress&utm_medium=landingpage&utm_campaign=EBFreePlugin"> Edwiser Bridge - Selective Synchronization </a>
* <a href="https://edwiser.org/wp-content/uploads/edd/2022/08/edwiserbridge.zip"> Edwiser Bridge - Moodle Add On </a>




= Top Features if you want to sell your Moodle courses better - =

= CourseFront - =
* Integration between your WordPress and Moodle sites,
* Import your Moodle courses to WordPress,
* Synchronize Moodle course categories to WordPress,
* Set the Moodle courses as draft,
* Sell courses through WordPress and take its payments through PayPal,
* Synchronize enrolled courses data for users.

= Course Access Control - =
* Automation user registration in Moodle,
* Enable/Disable registration to courses,
* Identical login credentials to access courses in Moodle,
* Set course access time from WordPress,
* Update previously synchronized courses,
* Enrol / Unenrol users from WordPress,
* Provide Refund to your students from WordPress.

= Connect your Moodle with Multiple WordPress Sites - =
* Now connect single Moodle site with multiple WordPress sites,
* Courses from single Moodle site could be sold through multiple WordPress sites,
* Automated 2-way synchronization between each WordPress site and your Moodle site,
* Secured and efficient transfer of information across sites,
* Course Progress of student synced from Moodle to WordPress in real time.



= Recommended Plugins to Extend Edwiser Bridge's Features - =

= Why we need to extend the functionality? =
If you wish to create a complete eCommerce shopfront to sell your Moodle courses.
If you want to sell your courses through payment gateways other than PayPal.
If you want to create purchase invoices automatically for your course buyers.
If you wish to sell an add-on product along with your Moodle course.
When you want to provide a seamless access between your Course Shopfront and  Moodle LMS.
If you sell your courses to companies.    

= <a href="https://edwiser.org/bridge/extensions/woocommerce-integration/?utm_source=WordPress&utm_medium=landingpage&utm_campaign=EBFreePlugin"> Edwiser Bridge-WooCommerce Integration extension </a> =
This provides integration with WooCommerce - popular eCommerce solution in WordPress,
It helps you to sell your Moodle courses through more than 160+ payment gateways,
You can also sell a physical product or an add-on product along with your Moodle courses,
Courses could be sold through subscriptions with ready integration with WooCommerce Subscriptions,
Ability to set variation to courses and sell them through your store,
Ability to bundle multiple courses as a single product or multiple products under a single product, 

= <a href="https://edwiser.org/bridge/extensions/bulk-purchase/?utm_source=WordPress&utm_medium=landingpage&utm_campaign=EBFreePlugin"> Edwiser Bridge-Bulk Purchase extension </a> =
When coupled with WooCommerce Integration extension your course buyers could then purchase multiple courses at once,
Course Buyers could also enrol multiple students in the purchased course,
Cohorts are created for each purchase done by the course buyer,

= <a href="https://edwiser.org/bridge/extensions/single-sign-on/?utm_source=WordPress&utm_medium=landingpage&utm_campaign=EBFreePlugin"> Edwiser Bridge-Single Sign extension </a> =
This extension provides a seamless connection between Course Front and LMS.

Notice: Please drop a message <a target="_blank" href="https://forums.edwiser.org/topic/116/multi-lingual-wpml-support-version-for-edwiser-bridge-plugin">here </a> if you want us to develop WPML supported version for Edwiser Bridge plugin.


= Additional Edwiser products that provides improves your Moodle experience - =

= <a href="https://edwiser.org/remui/?utm_source=WordPress&utm_medium=landingpage&utm_campaign=EBFreePlugin">Edwiser RemUI </a> =

The Best theme for Moodle that is built to provide superior user experience in Moodle. It also provides enhanced functionality to ease the process of course creation and navigation.

= <a href="https://edwiser.org/forms/?utm_source=WordPress&utm_medium=landingpage&utm_campaign=EBFreePlugin">Edwiser Forms </a> =

An easy to use tool that lets you create any form in Moodle using drag and drop interface. Contact form, Survey form, Feedback form or registration form any form that you need can now be developed within few minutes.

= <a href="https://edwiser.org/site-monitor/?utm_source=WordPress&utm_medium=landingpage&utm_campaign=EBFreePlugin">Edwiser Site Monitor </a> =

A free plugin that helps you manage your Moodle site performance right from Admin Dashboard of Moodle. It provides essential site information like CPU Status, Memory Usage etc. 

= <a href="https://edwiser.org/course-formats/?utm_source=WordPress&utm_medium=landingpage&utm_campaign=EBFreePlugin">Edwiser Course Formats </a> =

A free plugin that provides you two distinct course formats for your Moodle courses if you wish to improve learning and course engagement among students.


 ==  Installation  ==

 = Minimum Requirements =
* PHP version 5.6 or greater
* WordPress 5.6 or higher
* Moodle 3.9 or higher

 =  Automatic Installation  =
* Go to the Plugins menu from the dashboard.
* Click on the 'Add New' button on this page.
* Search for 'Edwiser Bridge' in the search bar provided.
* Click on 'Install Now' once you have located the plugin.
* On successful installation click the 'Activate Plugin' link to activate the plugin.

 =  Manual Installation  =
* Download the Edwiser Bridge plugin from WordPress.org.
* Now unzip and upload the folder using the FTP application of your choice.
* The plugin can then be activated by navigating to the Plugins menu in the admin dashboard.

= Moodle Plugin Automatic Installation =
* Download the Moodle edwiserbridge plugin from <a href = "https://edwiser.org/wp-content/uploads/edd/2022/08/edwiserbridge.zip">here</a>.
* Go to the Plugins menu in Moodle.
* Click on Install plugins.
* Upload plugins zip file.
* Then click on Install plugin from the Zip file.

 = Moodle Plugin Manual Installation  =
* Download the Moodle edwiserbridge plugin from <a href = "https://edwiser.org/wp-content/uploads/edd/2022/08/edwiserbridge.zip">here</a>.
* Now unzip and upload the folder in local directory of Moodle using the FTP application of your choice.
* The plugin can then be activated by navigating to the Plugins menu in the dashboard.


 = Moodle Configuration =
Take a look at the link below and follow the steps provided to configure your Moodle website.
<a href = "https://edwiser.org/bridge/documentation/#tab-b540a7a7-e59f-3">Moodle Website Configurations</a>


== Screenshots == 
1. General Settings for Edwiser Bridge.
2. Connection Settings for Edwiser Bridge.
3. Course Synchronization from Moodle to WordPress.
4. User Enrollment Data Synchronization.
5. Paypal Payment Gateway Settings.
6. Courses imported from Moodle in the WordPress Backend.
7. Course Edit Page.
8. Orders of Courses Purchased from WordPress.
9. Order Edit Page.
10. Refund edwiser bridge order.
11. A student can update their profile details from the frontend.
12. Shortcode for User Dashboard with Orders and Account details.
13. Courses archive page template.
14. Courses page Shortcode to display edwiser bridge courses.
15. Display courses with category grouping using eb_courses page shortcode.
16. My Courses page Shortcode.
17. Single course page template.
18. Edit email notification template's content.
19. Moodle Set-up wizard.
20. Moodle Set-up wizard: General Settings.
21. Moodle Set-up wizard: Web Service Settings.
22. Moodle Set-up wizard: WordPress Site Connection Settings.
23. Moodle Set-up wizard: WordPress Site Connection Syncronisation settings.
24. Moodle Set-up wizard: Settings Summary.
25. Wordpress Edwiser Bridge Statistics.
26. Wordpress User login page.
27. Wordpress User registration page.



 ==  Frequently Asked Questions  == 

= Do you require Multi-lingual/WPML support for Edwiser Bridge plugin? =
Please drop a message <a target="_blank" href="https://forums.edwiser.org/topic/116/multi-lingual-wpml-support-version-for-edwiser-bridge-plugin" >here </a> if you want us to develop WPML supported version for Edwiser Bridge plugin.


 = Do WordPress and Moodle need to be installed and running on the same server? = 
No, not required. Both the systems can be installed on the same server or different servers.

 = Which course details are imported on synchronizing courses from Moodle to WordPress? = 
When courses are imported from Moodle the course title, description and course category are imported to WordPress.

 = Can one WordPress website be used with multiple Moodle websites? = 
No, this is not possible using Edwiser Bridge.


 = Can one Moodle site be connected to multiple WordPress sites?

Yes, if you are using Edwiser Bridge version 1.4.0 onwards then you will now be able to connect your Moodle site to multiple WordPress sites.

 = Can I use another payment gateway in place of PayPal to sell my courses?

As of now Edwiser Bridge has only one payment gateway integrated with it and that's PayPal.
But we are open to adding new payment gateways as part of the product but for that we need your suggestions so that we add the one that works best for you.

You can post your suggestions in our Ideas Forum.   

 = What if I wish to suggest some new features as part of Edwiser Bridge? Where should I do it?

You can post all your feature requests and also vote of similar feature requests shared by fellow community members in our <a href="https://forums.edwiser.org/category/9/request-a-feature">Ideas Forum</a>.



Take a look at the link below to see the full list of questions which will help you around the Edwiser Bridge plugin. 
<a href = "https://edwiser.org/bridge/faqs/">Frequently Asked Questions for Edwiser Bridge</a>

Also check our knowledge base for more queries
<a href = "https://edwiser.helpscoutdocs.com/collection/85-edwiser-bridge-plugin">knowledge base for Edwiser Bridge</a>



 ==  Changelog  ==

= 2.2.1 =
* Tweak - Remove the take this course button from the deleted course.
* Tweak - After deleting the course from Moodle course status will get changed to draft on the WordPress site.
* Fix   - Solved Edwiser Bridge expire time issue on user enrollment synchronization.
* Fix   - Fixed repeated user unerollement emails for deleted courses.
* Fix   - Solved WordPress user data update issue on user account page, in case the user was not linked to Moodle.

= 2.2.0 =
* Feature - Added Setup Wizard for on WordPress as well as Moodle plugin.
= 2.1.8 =
* Tweak - Added compatibility to WordPress 6.0.

= 2.1.7 =
* Tweak – Changed textdomain to edwiser-bridge as per wordpress guidelines and added compatibility with old textdomain.
* Tweak – Added compatibility with Moodle 4.0.

= 2.1.6 =
* Fixed: Course acrhive page fix for wordpress version less than 5.9.

= 2.1.5 =
* Tweak - Added compatibility to WordPress 5.9.1.
* Tweak - Added comaptibility with Twenty twenty two theme.
* Tweak - Improved course manual enrollment syncronization functionality.
* Tweak - UI improvements on user account page.

= 2.1.4 =
* Fix- Fixed error on user account page for reset password hook .

= 2.1.3 =
* Feature - Setting to ignore the SSL certificate check to improve connection check with moodle.
* Feature - Ability to the course manual enrollment status sync and enabled (Require Edwiser Bridge moodle plugin 2.1.3).
* Feature - Ability to enable course manual enrollment.
* Tweak - Improved Moodle test connection error message now added more details about the error.
* Fix- Fixe for the auto plugin installation/activation process from Edwiser bridge.

= 2.1.2 =
* Feature - Added functionality to create course on WordPress if created on Moodle.
* Feature - Repurchase option for the suspended course on single course page.
* Fix - Removed registration section from user-account page if registation is disabled from settings.


= 2.1.1 =
* Feature - Added option on WordPress Edwiser Bridge settings to add Moodle role id which is used while creating users on Moodle.
* Tweak - Optimized user-account page functionality which further improved the page speed.
* Tweak - Optimized My Courses page functionality which further improved the page speed.

= 2.1.0 =
* Fix - Solved My-courses page login link issue for non logged in users.
* Tweak - Modified course archive page, single course page, user-account page, eb_course shortcode page and my courses page templates.
* Feature - Added course category wise filter and sorting functionality on course shortcode page.
* Feature - Added stats page in Edwsier Bridge settings.
* Feature - Added all Edwiser WordPress and Moodle extensions latest versions on stats page with Moodle plugins download link.
* Feature - Added Edwiser Bridge configuration details like Moodle site details and course count on stats page.

= 2.0.9 =
* Feture - Added the password filed on user registration window.
* Feture - Added link user account functionality if the account is created on moodle and exist on wordpress.
* Feture - Added Setting to show hide course archive page in frontend.
* Feture - Added search functionality on manage enrollment page.
* Tweek - Added space before username in new user account email template.
* Tweek - Improved the test connection error message.
* Tweek - My Courses page progress service call optimisation.
* Fix - Paid order was showing HTML in notes.
* Fix - Help popup was showing html on setting page.
* Fix - User Linked success message style fix.

= 2.0.8 =
* Fix - Fixed security issues added abspath check.

= 2.0.7 =
* Fix - Fixed security issues related to the nonce.

= 2.0.6 =
* Fix - Fixed paid product redirection issue.
* Tweak - Added compatibility to SSO plugin.

= 2.0.5 =
* Tweak - Modified plugin files include way minimized use of ABSPATH constant.

= 2.0.4 =
* Fix - Added security fixes for WordPress API  (Issue report credits: Nick Blundell <nickb@appcheck-ng.com>).


= 2.0.3 =
* Tweak - Removed defines and Added security checks.

= 2.0.2 =
* Tweak - Solved connection settings save issue.

= 2.0.1 =
* Tweak - Added security checks.

 = 2.0.0 =
* Feature - Theme compatibility with Divi.
* Feature - Theme compatibility with Flatsome.
* Feature - Added Bcc field in the email template.
* Feature - First name, last name and password synchronization when user profile is updated.
* Feature - Course deletion synchronized on WordPress site when course is deleted from Moodle.
* Tweek - New enrollment status that is Suspend is added on the WordPress side.
* Tweek - Added date sorting in the Manage Enrollment page.
* Tweek - Triggered email for backend user enrollment in course.
* Tweek - Course progress functionality  added on the My Courses tab of the User account page.
* Tweek - Added Sidebar support for course archive page.
* Tweek - UI Improvements for course cards on all pages..


 = 1.4.9 =
* Fix - Added permission callback in register_rest_route to fix the notice genrated in the wp 5.5 and above.


= 1.4.8 =
* Fix - Fix for the register_rest_route was called incorrectly.
* Tweek - Added common function to check the array value.

= 1.4.7 =
* Tweak - Compatibility with WordPress 5.5 and Woocommerce Integration 2.0.1 .

= 1.4.6 =
* Fix - Solved admin js console issue causing error while test connection.

= 1.4.5 =
* Feature - All required Moodle settings are now able to configure from the Edwiser Bridge settings.
* Feature - Settings and connection summary page will be shown on the Moodle.
* Tweak - Admin user unenrollment from edit user page and manage enrollment page will unenroll user from course irrespective of thr enrollment method and the enrollment count.
* Tweak - Modified Moodle service creation process.
* Fix - Unenrolment from Moodle use to decrease only WordPress enrollment count now it will make enrollment count as 0.


= 1.4.4 =
* Tweak - Changed user enrollment email functionality to make it compatible with Edwiser Bulk Purchase and Group Registration 2.2.0.


= 1.4.3 =
* Feature - Added functionality to show a set-up wizard on Moodle plugin installation to create web service automatically with authorized user.
* Feature - Added functionality to add missing functions on linking the existing web-service.
* Tweak - Added functionality to show all non added Moodle web service functions on test connection functionality.
* Tweak - Added buttons on settings page for help and rating.
* Fix - While synchronizing courses if all checkboxes are not ticked then nothing was happening fixed this issue and now courses gets created in WordPress with a status as published.
* Fix - WordPress enrollment record timezone was not same as the WordPress timezone so fixed it.


= 1.4.2 =
* Tweak - Added functionality to synchronize large number of users.
* Fix - Paid orders sometimes were not getting completed for new users. This issue has been resolved.
* Fix - Solved the title issue appearing without elipses on course card.
* Fix - Removed blank spaces added automatically before email templates.

= 1.4.1 =
* Fix - Removed admin notices.
* Fix - Solved eb-my-courses course progress issue.

= 1.4.0 =
* Feature - Users will be enrolled in the course in the WordPress site when they are enrolled manually in Moodle directly.
* Feature - Email template for User enrolled directly in Moodle.
* Feature - User will get un-enrolled from the course on WordPress site if the same user gets un-enrolled from the course on Moodle site.
* Feature - Email template for user un-enrollment directly in Moodle.
* Feature - User account will be created on WordPress site if a user is created on the Moodle site.
* Feature - User account will be deleted on WordPress site if the user is deleted from the Moodle site.
* Feature - Email template can be sent when the user deletion happens in Moodle.
* Feature - Course progress shown on the eb-my-courses page.
* Feature - Default user role can be set for the newly created users if they are created from Edwiser Bridge user-account page or through any of its functionality.
* Tweak - Start, Resume and completed buttons on the eb-my-courses page according to the course completion status.
* Fix - course synchronization settings was synchronizing courses even if they are not checked. This has been resolved.



= 1.3.4 =
* Feature - Added option to add link for the redirection from eb-my-courses page if user is not enrolled in any course.
* Feature - Added option to disable and customize recommended courses section in eb-my-courses page.
* Feature - Added option to add and customize recommended courses for the single course page.



= 1.3.3 =
* Feature - Added optional terms and conditions on user account page depending on the backend setting.
* Tweak- Added user meta data related to the edwiser-bridge while exporting the users data.
* Tweak- Added functionality to remove user meta data related to the edwiser-bridge while erasing the users data.
* Tweak- Added privacy policy data on the WordPress privacy policy page.


= 1.3.2 =
* Tweak - Added missing JS and CSS Files.

= 1.3.1 =
* Feature - Added New Order functionality.
* Feature - Added admin notice on the backend to rate Edwiser Bridge Plugin.
* Tweak- Added Biographical Information on the user-account dashboard.
* Tweak- Added premium extensions tab in the edwiser-bridge settings.
* Tweak- Added terms and condition pop-up on the license activate page.
* Fix - eb-courses page was showing courses in the parent as well as the child category.
* Fix - Synced Categories from Moodle was not syncing category description.

= 1.3.0 =
* Feature - Refund functionality for the order placed using the Edwiser bridge plugin.
* Feature - Email template for the admin and customer on order refund
* Feature - Setting to send refund notification to the specific email or admin users email.
* Feature - New order status(Refund).
* Feature - New meta box on the eb order page to display the order status update history. On full refund Order status will change to the refunded.
* Feature - Refurbished the user account page, added menus for the pages like Dashboard, user-account, orders, and my courses.
* Twik - Now user can view there woo and eb orders on the same page.
* Twik - To display multiple courses from the same order on the user order page.
* Twik - For the security purpose, added password confirmation fields on the user account page.
* Twik - Updated the eb-courses page sliding buttons.
* Fix - The courses grid item height issue on my courses and courses page.
* Fix - Fixed the 'TAKE THIS COURSE' button style issue.

= 1.2.3 =
* Feature - Functionality to display courses by category in eb_courses shortcode.
* Feature - Functionality to display eb_courses shortcode output horizontally scrollable.
* Feature - Functionality to display courses in a single row using eb_courses shortcode.
* Feature - SSO compatibility to login user on registration after clicking on enrolled course.

= 1.2.2 =
* Feature - New page for the admin to manage user enrollment.
* Feature - New email template for the Moodle account creation.
* Feature - Functionality to disable email notifications.
* Feature - Functionality to place the order for the free course to maintain the purchase history.
* Tweak- Added the order and Buyer details on order page.
* Tweak- User gets un-enroll from the course on the order status marked from completed to pending or failed.
* Tweak- Updated the user order details on the user account page and added the order status column.
* Fix - User not getting created on moodle when username contains the uppercase characters.
* Fix - My courses shortcode showing only 10 courses not more than that.


= 1.2.1 =
* Feature - Functionality to display the users moodle account link unlink status on users list table for the admin user.
* Fix - Fix for the plugins default data update on plugin update.

=  1.2.0  =
* Feature - Functionality to set course access expiry days.
* Feature - Introduced functionality to email template customization for the mail sent to the user from the Edwiser Bridge plugin.
* Feature - Update Moodle as well as WordPress user profile from shortcode `eb_user_account`.
* Feature - Added the settings to enable login redirection to my courses page.
* Feature - Send the test email to check the modified email template.
* Feature - Shortcode `eb_courses` to list courses.
* Feature - Shortcode `eb_my_courses` to list specific user's courses.
* Feature - Shortcode `eb_course` to show single course. Argument `id` i.e Course ID decides which course to show.
* Tweak - Added page(My Courses) to display the user's enrolled courses.
* Tweak - Redirect user to my courses page on login.
* Tweak - Translation ready - fix missing strings.
* Tweak - Notification on un-enrollment from the course.
* Tweak - Archive course page layout improvement.
* Tweak - Single course page layout improvement.
* Tweak - Redirect non-logged in user to the `Access course`/`Checkout` page on click of the `Take this Course` after login.
* Tweak - Deprecated shortcode eb_user_profile. Use shortcode `eb_user_account`.
* Fix - Changed Credentials spelling.
* Fix - Undefined index: HTTP_REFFER.
* Fix - Permalink issue.
* Fix - Call to undefined class EBPaymentManager.


=  1.1.2  =
* Added new currency in PayPal for the Australian Dollar, Polish Zloty, Danish Krone and Singapore Dollar.
* Fix - Resolved Paypal Sandbox mode issue.

=  1.1.1  = 
* Fix - Minor issue in page creation functionality.

=  1.1  = 
* Fix - Issue in overriding templates in themes.
* Tweak - Unified licensing section for all Edwiser Bridge extensions.
* Tweak - Refactored & optimized whole plugin codebase using tools like PHPCS & PHPMD.

 =  1.0.2  = 
* Feature - Added a new shortcode [eb_user_profile] which creates a user profile page that lists users data & enrolled courses.
* Fix - Timeout problem in course enrollment.
* Fix - A bug that was preventing plugin translation.
* Tweak - Minor modifications to improve enrollment & synchronization process.

 =  1.0.1  = 
* Fix - A bug that could cause problems on password reset & user enrollment process

 =  1.0  = 
* Plugin Launched

## Upgrade Notice ##

### 1.1.1 ###
1.1 is a major update so it is important that you make backups, and ensure all extensions are version 1.1 compatible for proper functionality across Edwiser Bridge & its extensions.
