Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter rookiewp

    (@rookiewp)

    Thanks for the helpful hint: Using the filters the new question-type appeared in the backend question-type choice list.

    However I didn’t succeed in extending properly the LP_Question class. What I did first was to copy “class-lp-question-single-choice.php” as an example for the extension and then to change filename, classname and question-type name to the new one. But when I choose in backend the new type the typical “single-choice” view (with radio buttons) doesn’t appear. Is there any other datastructure to double from “single-choice”?
    Question for me is also how the extended LP_Question-class will be called. I included the file with the new class within my AddOn by “required_once” after lp has been loaded, but how does lp calls the extended class and uses it for front and backend when the new question type has been chosen?

    For eventual further questions: Is there any tutorial for AddOn development in LP (e.g. explaining the datastructure and extendable classes)? I could only find the “Rest API” and a list of actions and filters, but to find the right interfaces I’m doing deep-dives in lp-code and I’m greatful for getting your good hints.
    Thanks a lot!

Viewing 1 replies (of 1 total)