File "AbstractAjaxService.php"
Full Path: /home/aiclgcwq/photonindustriespvt.com/wp-content/plugins/duplicator/src/Ajax/AbstractAjaxService.php
File size: 562 bytes
MIME-type: text/x-php
Charset: utf-8
<?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));
}
}