array( 'type' => 'string' ), 'effective_schema_type' => array( 'type' => 'string' ), 'effective_id' => array( 'type' => 'string' ), 'publisher_name' => array( 'type' => 'string' ), 'website_name' => array( 'type' => 'string' ), 'website_alternate_name' => array( 'type' => 'string' ), 'organization_description' => array( 'type' => 'string' ), 'url' => array( 'type' => 'string' ), 'logo' => array( 'type' => 'object' ), 'same_as' => array( 'type' => 'array' ), 'local_seo' => array( 'type' => 'object' ), 'twitter_card_type' => array( 'type' => 'string' ), 'open_graph_image' => array( 'type' => 'string' ), ); } 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 = Schema_Repository::status(); $status['message'] = '' === $status['publisher_name'] ? sprintf( /* translators: %s: resolved schema type */ __( 'Rank Math will emit a %s publisher entity, but no publisher name is set — search engines will have an incomplete knowledge-graph entry.', 'acrossai-abilities-manager' ), $status['effective_schema_type'] ) : sprintf( /* translators: 1: resolved schema type, 2: publisher name */ __( 'Rank Math will emit a %1$s publisher entity for "%2$s".', 'acrossai-abilities-manager' ), $status['effective_schema_type'], $status['publisher_name'] ); return $status; } }