%PDF- %PDF-
Direktori : /home/opti/public_html/stlc/wp-content/plugins/duplicator/src/Ajax/ |
Current File : /home/opti/public_html/stlc/wp-content/plugins/duplicator/src/Ajax/AbstractAjaxService.php |
<?php /** * @package Duplicator * @copyright (c) 2022, Snap Creek LLC */ namespace Duplicator\Ajax; abstract class AbstractAjaxService { /** * Init ajax calls * * @return void */ abstract public function init(); /** * Add ajax action * * @param string $tag ajax tag name * @param string $methodName method name * * @return bool Always returns true */ protected function addAjaxCall($tag, $methodName) { return add_action($tag, array($this, $methodName)); } }