* @since 1.1.0 */ public static function get_disabled_abilities(): array { return AbilitiesState::disabled(); } /** * {@inheritDoc} */ protected function asset_key(): string { return 'abilities'; } /** * {@inheritDoc} */ protected function menu_position(): int { return Menu::POSITION_ABILITIES; } /** * {@inheritDoc} */ protected function screen_title(): string { return __( 'Abilities', 'albert-ai-butler' ); } /** * {@inheritDoc} */ protected function root_id(): string { return 'albert-abilities-root'; } /** * {@inheritDoc} */ protected function js_global(): string { return 'albertAbilities'; } /** * {@inheritDoc} */ protected function rest_suffix(): string { return 'abilities'; } /** * {@inheritDoc} */ protected function stylesheet(): array { return [ 'handle' => 'albert-abilities', 'path' => 'assets/css/admin-abilities.css', ]; } /** * {@inheritDoc} */ protected function needs_dataviews_css(): bool { return true; } /** * {@inheritDoc} */ protected function unmet_requirement(): ?array { if ( function_exists( 'wp_get_abilities' ) ) { return null; } return [ 'title' => __( 'WordPress 6.9+ Required', 'albert-ai-butler' ), 'message' => __( 'The Abilities API requires WordPress 6.9 or later. Please update WordPress to use this feature.', 'albert-ai-butler' ), ]; } }