Файловый менеджер - Редактировать - /home/tuudkjt/globeasy/wp-content/plugins/reviewx/app/Api/CptApi.php
Назад
<?php namespace Rvx\Api; use Rvx\Apiz\Http\Response; use Exception; class CptApi extends \Rvx\Api\BaseApi { /** * @param $id * @return Response * @throws Exception */ public function cptGet() : Response { return $this->get('custom-post-type'); } /** * @param array $data * @return Response * @throws Exception */ public function cptStore(array $data) : Response { return $this->withJson($data)->post('custom-post-type/store'); } /** * @param $id * @return mixed * @throws Exception */ public function cptDelete($id) { return $this->delete('custom-post-type/' . $id['uid']); } /** * @param array $data * @param $uid * @return Response * @throws Exception */ public function cptUpdate(array $data, $uid) : Response { $url = 'custom-post-type/' . $uid . '/update'; return $this->withJson($data)->put($url); } /** * @param array $data * @param $uid * @return Response * @throws Exception */ public function cptStatusChange(array $data, $uid) : Response { $url = 'custom-post-type/' . $uid . '/status-change'; return $this->withJson($data)->put($url); } }
| ver. 1.6 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка