* @package AnyComment\Admin * @since 0.0.70 */ class AnyCommentSubscriptionsPage { public function __construct() { $this->init_hooks(); } /** * Initiate hooks. */ private function init_hooks() { add_action( 'admin_menu', [ $this, 'add_menu' ] ); } /** * Init admin menu. */ public function add_menu() { add_submenu_page( 'anycomment-dashboard', __( 'Subscriptions', "anycomment" ), __( 'Subscriptions', "anycomment" ), 'manage_options', 'anycomment-subscriptions', [ $this, 'page_html' ] ); } /** * Display uploaded files page. */ public function page_html() { echo AnyCommentTemplate::render( 'admin/tables/subscriptions' ); } }