array( 'type' => 'string' ), 'module_active' => array( 'type' => 'boolean' ), 'index_url' => array( 'type' => 'string' ), 'rewrite' => array( 'type' => 'object' ), 'cache_enabled' => array( 'type' => 'boolean' ), 'post_types' => array( 'type' => 'array' ), 'taxonomies' => array( 'type' => 'array' ), 'general' => array( 'type' => 'object' ), 'index_check' => array( 'type' => array( 'object', 'null' ) ), ); } protected function required_input(): array { return array(); } protected function annotations(): array { return array( 'readonly' => true, 'destructive' => false, 'idempotent' => true ); } /** * @param array $input * @return array|WP_Error */ protected function run( array $input ) { $status = Sitemap_Repository::status(); $status['message'] = $status['module_active'] ? __( 'Returned live Rank Math sitemap status.', 'acrossai-abilities-manager' ) : __( 'The Rank Math sitemap module is inactive, so no sitemap is served. Enable it with rank-math/set-module-status.', 'acrossai-abilities-manager' ); return $status; } }