UNPKG

@iflow-mcp/claudeus-wp-mcp

Version:

The most comprehensive WordPress MCP server - 145 production-ready tools for complete WordPress management with AI

33 lines 1.07 kB
import { BaseApiClient } from './base-client.js'; export class ThemeApiClient extends BaseApiClient { async getThemes(filters) { return this.getPaginated('/themes', filters); } async getTheme(stylesheet) { return this.get(`/themes/${stylesheet}`); } async getActiveTheme() { const themes = await this.get('/themes', { status: 'active' }); if (!themes.length) { throw new Error('No active theme found'); } return themes[0]; } async activateTheme(stylesheet) { return this.post(`/themes/${stylesheet}`, { status: 'active' }); } async getThemeCustomization() { return this.get('/settings'); } async updateThemeCustomization(updates) { return this.post('/settings', updates); } async getCustomCss() { const response = await this.get('/settings'); return response.custom_css || ''; } async updateCustomCss(css) { return this.post('/settings', { custom_css: css }); } } //# sourceMappingURL=themes.js.map