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

Function resolvePostType

apps/sim/connectors/wordpress/wordpress.ts:89–98  ·  view source on GitHub ↗

* Resolves the postType config value to the WordPress API type parameter.

(postType?: string)

Source from the content-addressed store, hash-verified

87 * Resolves the postType config value to the WordPress API type parameter.
88 */
89function resolvePostType(postType?: string): string {
90 switch (postType) {
91 case 'Posts':
92 return 'post'
93 case 'Pages':
94 return 'page'
95 default:
96 return 'any'
97 }
98}
99
100export const wordpressConnector: ConnectorConfig = {
101 ...wordpressConnectorMeta,

Callers 1

wordpress.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected