=== Videm App – اپ ویدم ===
Tags: woocommerce, courses, video, enrollment
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.7.3
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html

Connect WordPress to Videm for course access, student sign-in, and automatic enrollment from WooCommerce orders.

== Description ==

Videm App connects your WordPress site to [Videm](https://videm.app/), a hosted platform for delivering online courses. It is designed for instructors and academies that already use WordPress for their websites or WooCommerce for selling courses.

* Embed the Videm web app at `/videm.app`. Signed-in students can open courses they have access to through their linked email address or verified mobile number.
* Link WooCommerce products to Videm courses and grant access automatically when eligible orders are paid.
* See course, enrollment, and student engagement reports in the WordPress dashboard.

افزونهٔ ویدم سایت وردپرسی شما را به پنل ویدم وصل می‌کند. می‌توانید محصولات ووکامرس را به دوره‌های ویدم متصل کنید تا پس از پرداخت، دسترسی هنرجو ثبت شود. هنرجو هم می‌تواند از حساب وردپرس خود، دوره‌هایش را در صفحهٔ `/videm.app` باز کند.

= External services =

A Videm instructor account with API access is required. Service availability and pricing depend on the [Videm plan](https://videm.app/pricing). The administrator connects the site by saving the instructor's mobile number and API token in the plugin settings.

* Panel API (`https://panel-api.videm.ir` by default, or the HTTPS panel URL selected by the administrator). Requests use the instructor's mobile number and API token for authentication. On connection, the plugin verifies those credentials and checks the sign-in endpoint with a test value.
* Student sign-in. When a signed-in student opens `/videm.app`, the plugin sends the student's verified mobile number or linked email address and the site's hostname to the panel to obtain a session token. The browser loads the Videm app from `https://wp.videm.app` and passes the session token to that origin so the student can sign in.
* WooCommerce enrollment. For eligible orders containing linked courses, the plugin sends the course identifier and the student's billing name and selected identifier (mobile number or email address) to Videm to grant access.
* Dashboard and reports. While connected, the plugin retrieves account balance, course and enrollment data, and student engagement data from the panel for display in WordPress.
* App downloads. If the web app page is disabled and the site is connected, the eligible order details page can load the downloads iframe from `https://videm.app/wp-downloads`.

To disconnect WordPress from the service, open the panel connection tab, select the option to remove the saved API token, and save the settings.

[Instructor terms](https://videm.app/teacher-terms) and [participant terms](https://videm.app/student-terms).

== Installation ==

1. Install and activate Videm App.
2. Open the Videm menu in WordPress and select the panel connection tab.
3. Enter the instructor account's mobile number and the API token from the [Videm developer panel](https://panel.videm.ir/developers), then save.
4. To enroll students from purchases, activate WooCommerce, choose the student identity method in Videm settings, and link products to Videm courses in the product editor.
5. To use `/videm.app`, select a permalink structure other than Plain and test the page while logged in as a student with course access.

== Frequently Asked Questions ==

= Do I need WooCommerce? =

WooCommerce is required for automatic enrollment from orders. The embedded app can be used without WooCommerce when WordPress already provides the verified student identity and their course access is available in Videm.

= What if I use the older videm-plugin? =

Deactivate the older plugin before switching. Existing course mappings are read from product metadata. Enter the panel connection credentials in Videm App.

== Changelog ==

= 1.7.3 =

* Added Persian to the plugin display name.

= 1.7.2 =

* Loaded the settings script and the app page stylesheet through WordPress enqueue functions.

= 1.7.1 =

* Restored WordPress core update checks.
* Made removing the saved API token disconnect the embedded app and restricted cached sign-in sessions to the current panel credentials.
* Turned off detailed enrollment request logging by default.
* Switched the classic download box to system fonts.
