MCPcopy Index your code
hub / github.com/simstudioai/sim / extractCategoryNames

Function extractCategoryNames

apps/sim/connectors/wordpress/wordpress.ts:48–50  ·  view source on GitHub ↗

* Extracts category names from a WordPress categories object.

(categories: Record<string, { name: string }>)

Source from the content-addressed store, hash-verified

46 * Extracts category names from a WordPress categories object.
47 */
48function extractCategoryNames(categories: Record<string, { name: string }>): string[] {
49 return Object.values(categories).map((c) => c.name)
50}
51
52/**
53 * Extracts tag names from a WordPress tags object.

Callers 1

postToDocumentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected