This tutorial requires minimum experience with PHP. You should follow this only if you're comfortable writing code, and have done this before, as making a mistake could potentially take your website down.

Minimum Knowledge Required to follow this guide :

I. The Filter : wpep_primary_content_item_link_title

II. How to Customize the eLearn Commerce Start Course Button using the PHP Filter:

https://gist.github.com/codeiscode-dev/c50b8d23a65b5298e33742cb3c076654#file-start-button-php

III. Code Analysis.

Filter: "wpep_primary_content_item_link_title" <- this is the filter name, any of the above filters can be used to customize specific element buttons.

Function Response:

https://gist.github.com/codeiscode-dev/c50b8d23a65b5298e33742cb3c076654#file-function-response-php

We add a text / string before the normal button text. If you want to replace the default button text too, you can use:

https://gist.github.com/codeiscode-dev/c50b8d23a65b5298e33742cb3c076654#file-function-response-2-php

Filter Priority: 8

eLearn Commerce uses the following filter priorities :

  1. 5 ( five ) - to set the course-specific button text from the Presentation Card Settings, if configured.
  2. 100 ( one-hundred ) - Membership Plugin Integration(s) for Up-selling Text.
  3. 1000 ( one-thousand ) - Coming Soon Option Checked, will set to #

IV. How to Customize the eLearn Commerce Start Course Button when the text is replaced by a deep Integration that up-sells your courses.

https://gist.github.com/codeiscode-dev/c50b8d23a65b5298e33742cb3c076654#file-start-button-final-php

Did this answer your question?