Skip to content

Tutor plugin that makes it a bit easier to interact with Open edX Commerce WordPress Plugin

License

Notifications You must be signed in to change notification settings

CodeWithEmad/tutor-contrib-wordpress

Repository files navigation

WordPress Plugin for Tutor

PyPI releases AGPL License

Overview

This is a Tutor plugin for integrating the Open edX Commerce WordPress Plugin with your Open edX instance. The plugin allows seamless synchronization and interaction between your WordPress site and Open edX platform, providing a cohesive e-commerce experience. If you don't know how to install the WordPress plugin, check out this installation guide.

Before you start

This plugin does not create or manage a WordPress instance at the moment. It is designed to assist with the configuration and integration of the Open edX platform with an existing WordPress site. If you need this feature, feel free to open an issue or better yet, a PR.

Prerequisites

Installation

Ensure you are using Tutor v15+ (Olive onwards). First, install the plugin by running:

pip install -U tutor-contrib-wordpress

Enable the plugin and run the launch command:

tutor plugins enable wordpress
tutor dev|local|k8s launch

Alternatively, if you already have a running Open edX instance, just run the necessary jobs:

tutor dev|local|k8s do init --limit=wordpress

Configuration

Inside your WordPress admin panel, you will need to configure the following values:

  • Open edX Domain
  • Client ID
  • Client Secret

Open edX Sync Plugin Settings in your WordPress Settings

You can retrieve these configuration values by running:

tutor wordpress config
===============================================
        WordPress Plugin Configurations
===============================================

Open edX Domain: http://local.edly.io
Client ID: qjCayDktffXrU09N17NrslKyWQ2EwzWn
Client ID (dev): JDx6Uy0hN67VUfacxKcLyYQz7HK9liVx
Client Secret: P4w82huaZQdyz4qolknsIHYneGEoIggc

Or by using Tutor to print them individually:

tutor config printvalue LMS_HOST
tutor config printvalue WORDPRESS_OAUTH2_SECRET
tutor config printvalue WORDPRESS_OAUTH2_KEY_SSO
tutor config printvalue WORDPRESS_OAUTH2_KEY_SSO_DEV

Contributing

We welcome all contributions! Feel free to open a Pull Request.

License

This software is licensed under the terms of the AGPLv3.

About

Tutor plugin that makes it a bit easier to interact with Open edX Commerce WordPress Plugin

Resources

License

Stars

Watchers

Forks

Packages

No packages published