mirror of
https://gh.wpcy.net/https://github.com/aspirepress/AspireCloud.git
synced 2026-07-18 11:39:23 +08:00
37 lines
838 B
PHP
37 lines
838 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Integrations\Wordpress;
|
|
|
|
class ThemeRequest extends AbstractWordpressApiRequest
|
|
{
|
|
public function resolveEndpoint(): string
|
|
{
|
|
return '/themes/info/1.2';
|
|
}
|
|
|
|
public function defaultQuery(): array
|
|
{
|
|
return [
|
|
'action' => 'theme_information',
|
|
'slug' => $this->slug,
|
|
'fields' => [
|
|
'description',
|
|
'sections',
|
|
'rating',
|
|
'ratings',
|
|
'downloaded',
|
|
'download_link',
|
|
'last_updated',
|
|
'homepage',
|
|
'tags',
|
|
'template',
|
|
'parent',
|
|
'versions',
|
|
'screenshot_url',
|
|
'active_installs',
|
|
],
|
|
];
|
|
}
|
|
}
|