WordPress plugin boilerplate AJAX functionality
I “resolved” it in the following way: In src -> App -> Frontend -> FrontRequestHandler.php i added the handler function that will insert the Custom Post. <?php /** * Class Enqueue * * @package DemoPlugin\App\Frontend * @since 1.0.0 */ class FrontRequestHandler extends Base { /** * Initialize the class. * * @since 1.0.0 */ public … Read more