Class abstraction for making ajax implementation more straightforward. classes/class-ajax-abstract.php
This class provides an abstract wrapper for making the implementation of ajax actions in WordPress more straightforward.
- Extend the abstract class by your own class.
- Add the necessary methods within the class and make use of the abstract's class helpers
- Launch a new instance of your class and indicate the scope.
- Your actions are automatically registered and can be accessed through your JS ajax functions.
- Extend the abstract class by your own class.
- Add the necessary methods within the class and make use of the abstract's class helpers
- Launch a new instance of your class and indicate the scope.
- Your actions are automatically registered and can be accessed through your JS ajax functions