Skip to content

Latest commit

 

History

History
71 lines (49 loc) · 2.03 KB

README.md

File metadata and controls

71 lines (49 loc) · 2.03 KB

learndash-extend-expiry

Allow user purchase a course extension for a LearnDash course with a fixed expiry date.

Integration

Screenshots

Allow to configure the extended access parameters for each course: Course Expiration settings

Expired access warning with an action to extend access, when the user tries to access a expired course (free and paid version): Expired Access Free

Expired Access Paid

Configurable expire warning to alert user before course expiration: Expire Warning

Paypal Integration with configurable notify URL to allow local tests: Paypal configuration

Development

# install dependencies
composer install
npm install

Test PayPal IPN integration

Use localtunnel to test PayPal IPN.

# install localtunnel
npm install -g localtunnel

# start tunnel to port 80
# put the generated url in the LD PayPal settings configurations in the "PayPal Notify URL" options
# example: https://swift-eagle-45.loca.lt/sfwd-lms/paypal
lt -p 80 --print-requests true

Helpful Commands

# PHP WordPress lint
composer php:lint

# fix PHP fixable errors
composer php:fix

# same to js
composer js:lint
composer js:fix

# run all lints
composer lint

# run all fixes
composer fix

Some future improvements

  • Configure CSS linting
  • Add a GitHub Action to automatically generate the zip file of the plugin
  • Add a GitHub Action to automatically publish the plugin to the WordPress.org repository
  • Code refactor to render the expiry warning through template
  • Add Stripe Integration