导入 AKSRT 主题开发源码
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user