@ax-crew/tools-wordpress
v1.0.1
Published
WordPress integration for AxCrew agents, enabling automated content management and site administration.
Downloads
11
Readme
@ax-crew/tools-wordpress
WordPress integration for AxCrew agents, enabling automated content management and site administration.
Installation
First ensure you have the Basic Auth plugin installed on your WordPress site. Then install the package:
npm install @ax-crew/tools-wordpressUsage
import { WordPressPost, WordPressConfig } from '@ax-crew/tools-wordpress';
// Configure WordPress credentials
const config: WordPressConfig = {
credentials: {
url: 'your_wordpress_url',
username: 'your_username',
password: 'your_application_password'
}
};
// Create WordPress instance
const wordPressPost = new WordPressPost(config);
// Register with AxCrew
const customFunctions = {
WordPressPost: wordPressPost.toFunction()
};
const crew = new AxCrew(AxCrewConfig, customFunctions);