25 lines
567 B
PHP
25 lines
567 B
PHP
<?php
|
|
/**
|
|
* AKSRT Admin — Post List Controller
|
|
*
|
|
* Owns section-level REST routes for the "文章&列表" domain.
|
|
*
|
|
* @package AKSRT
|
|
*/
|
|
|
|
defined('ABSPATH') || exit;
|
|
|
|
class AKSRT_Admin_Post_List_Controller extends AKSRT_Admin_Controller_Base {
|
|
|
|
private static $instance = null;
|
|
|
|
public static function get_instance(): self {
|
|
if (null === self::$instance) self::$instance = new self();
|
|
return self::$instance;
|
|
}
|
|
|
|
public function register_routes(): void {
|
|
$this->register_section_routes('post-list', 'post_list');
|
|
}
|
|
}
|