hook_suffix = (string) add_submenu_page( DashboardPage::SLUG, __( 'Yangra Conditional Settings', 'yangra-conditional' ), __( 'Settings', 'yangra-conditional' ), self::CAPABILITY, self::SLUG, array( $this, 'render' ) ); } /** * Renders the React mount point. * * @return void */ public function render(): void { echo '

'; } /** * Enqueues the settings app on this page only. * * @param string $hook_suffix Current admin page hook suffix. * @return void */ public function enqueue( string $hook_suffix ): void { if ( '' === $this->hook_suffix || $hook_suffix !== $this->hook_suffix ) { return; } AdminApp::enqueue( 'settings' ); } }