'capability_here' * To add a page to the network admin (wp-admin/network), use: 'network_admin_menu' => 'capability_here' * To add a page to the user (wp-admin/user) admin, use: 'user_admin_menu' => 'capability_here' * * @since 2.0.0 * @var array */ protected $supported_panels = [ 'network_admin_menu' => 'manage_network', ]; /** * Returns the title of the page. * * @since 2.0.0 * @return string Title of the page. */ public function get_title() { return __('About', 'wp-ultimo'); } /** * Returns the title of menu for this page. * * @since 2.0.0 * @return string Menu label of the page. */ public function get_menu_title() { return __('Multisite WaaS', 'wp-ultimo'); } /** * Allows admins to rename the sub-menu (first item) for a top-level page. * * @since 2.0.0 * @return string False to use the title menu or string with sub-menu title. */ public function get_submenu_title() { return __('About', 'wp-ultimo'); } /** * Every child class should implement the output method to display the contents of the page. * * @since 1.8.2 * @return void */ public function output(): void { wu_get_template('about'); } /** * Adds the cure bg image here as well. * * @since 2.0.0 * @return void */ public function register_scripts(): void { parent::register_scripts(); wp_add_inline_style( 'wu-admin', sprintf( ' #wpwrap { background: url("%s") right bottom no-repeat; background-size: 60%%; }', wu_get_asset('bg-setup.webp', 'img') ) ); } }