• Resolved bbua97

    (@bbua97)


    Hey there,

    I want do adjust the course (single) page a little bit. There are some functions in your plugin for example this one . Can I call this function via my functions.php file to use it then in a shortcode anywhere on the template?

Viewing 1 replies (of 1 total)
  • Plugin Support Jay

    (@bluejay77)

    Hi @bbua97,

    Please note that our support policy does not include assistance with customizations, so we will be unable to assist with modifying or debugging custom code, as noted here:

    https://senseilms.com/documentation/theming-customization/

    That said, a short answer is yes, you could call any public function and use it to your needs.

    I can see that the link you provided is pointing to the Sensei_Lesson class, so that could be accessed using Sensei()->lesson. For example if you want to call the Sensei_Lesson::lesson_count method, you should do it like this: Sensei()->lesson->lesson_count().

    I hope that helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Call functions via shortcode’ is closed to new replies.