| Server IP : 188.114.97.3 / Your IP : 104.23.243.216 Web Server : Apache System : Linux web236.dogado.net 4.18.0-553.141.2.lve.el7h.x86_64 #1 SMP Wed Jul 8 17:20:31 UTC 2026 x86_64 User : h193310 ( 10083) PHP Version : 8.4.12 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/h193310.web236.dogado.net/httpdocs/wp-content/plugins/kirki/app/Models/ |
Upload File : |
<?php
namespace Kirki\App\Models;
use Kirki\App\Constants\PostStatus;
use Kirki\App\Constants\PostTypes;
defined('ABSPATH') || exit;
use Kirki\App\Traits\SearchablePost;
use Kirki\Framework\Database\Query\Model;
class Media extends Model
{
use SearchablePost;
protected $table = 'posts';
protected $primary_key = 'ID';
protected $timestamps = false;
public static function query()
{
return parent::query()
->where('post_type', PostTypes::WP_ATTACHMENT)
->where_not('post_status', PostStatus::TRASH);
}
public function meta()
{
return $this->has_many(PostMeta::class, 'post_id', 'ID');
}
}