KeurigOnline SEO Meta Generator
WordPress Ability die AI gebruikt om SEO titels en meta descriptions te genereren
by KeurigOnline · github.com/keurigonline/ko-seo-meta-generator · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/keurigonline/ko-seo-meta-generator/archive/refs/heads/main.zipEen WordPress Ability die AI gebruikt om SEO titels en meta descriptions te genereren.
Gebouwd voor WordPress 6.9+ met de Abilities API.
Installatie
Vereisten
- WordPress 6.9+
- PHP 8.0+
- OpenAI API key
Stap 1: Plugin installeren
# Via WP-CLI
wp plugin install https://github.com/keurigonline/ko-seo-meta-generator/releases/latest/download/ko-seo-meta-generator.zip --activate
# Of download en upload naar /wp-content/plugins/
Stap 2: API Key configureren
Voeg toe aan wp-config.php:
define( 'OPENAI_API_KEY', 'sk-jouw-api-key' );
Blog Tutorial
Volledige stap-voor-stap handleiding beschikbaar!
Deze plugin is onderdeel van onze tutorial serie over de WordPress Abilities API. Leer hoe je zelf een Ability bouwt, van registratie tot AI-integratie.
De tutorial behandelt:
- Wat de Abilities API is en waarom het belangrijk is
- Ability registratie met
wp_register_ability() - Input/output schema's definiëren
- OpenAI integratie bouwen
- Testen via WP-CLI en REST API
Technische Documentatie
Systeemarchitectuur
┌─────────────────────────────────────────────────────────────────────────────┐
│ KeurigOnline SEO Meta Generator │
├─────────────────────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────┐ ┌────────────────────┐ ┌───────────────────┐ │
│ │ Client │ │ Ability │ │ AI Provider │ │
│ │ │ │ │ │ │ │
│ │ • WP-CLI │─────▶│ • Input validatie │─────▶│ • OpenAI API │ │
│ │ • REST │ │ • Schema check │ │ • gpt-5-nano │ │
│ │ • PHP │ │ • Error handling │ │ │ │
│ │ • JS │ │ │ │ │ │
│ └──────────┘ └────────────────────┘ └───────────────────┘ │
│ │ │ │ │
│ │ │ │ │
│ ▼ ▼ ▼ │
│ ┌──────────┐ ┌────────────────────┐ ┌───────────────────┐ │
│ │ Input │ │ Processing │ │ Output │ │
│ │ │ │ │ │ │ │
│ │ content │ │ • System prompt │ │ • seo_title │ │
│ │ language │ │ • User prompt │ │ • meta_description│ │
│ │ │ │ • JSON parsing │ │ │ │
│ └──────────┘ └────────────────────┘ └───────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────────────┘
Ability Registratie
add_action( 'wp_abilities_api_init', function() {
wp_register_ability(
'keurigonline/generate-seo-meta',
array(
'title' => 'SEO Meta Generator',
'description' => 'Genereert SEO titels en meta descriptions',
'category' => 'content',
'input' => array(
'content' => array( 'type' => 'string', 'required' => true ),
'language' => array( 'type' => 'string', 'default' => 'nl' ),
),
'output' => array(
'seo_title' => array( 'type' => 'string' ),
'meta_description' => array( 'type' => 'string' ),
),
'callback' => 'ko_seo_meta_generator_callback',
)
);
});
Gebruik
REST API
curl -X POST "https://site.nl/wp-json/wp-abilities/v1/abilities/keurigonline/generate-seo-meta/run" \
-H "Authorization: Bearer APP_PASSWORD" \
-H "Content-Type: application/json" \
-d '{"input": {"content": "Je content...", "language": "nl"}}'
WP-CLI
wp abilities run keurigonline/generate-seo-meta --input='{"content": "Je content...", "language": "nl"}'
PHP
$ability = wp_get_ability( 'keurigonline/generate-seo-meta' );
$result = $ability->execute( array(
'content' => get_the_content(),
'language' => 'nl',
) );
Input/Output Schema
| Input | Type | Verplicht | Beschrijving |
|---|---|---|---|
content |
string | Ja | Content voor SEO generatie |
language |
string | Nee | Taal: nl, en, de (standaard: nl) |
| Output | Type | Beschrijving |
|---|---|---|
seo_title |
string | SEO titel (max 60 tekens) |
meta_description |
string | Meta description (max 160 tekens) |
Demo Modus
Test zonder API key:
define( 'SEO_META_GENERATOR_DEMO_MODE', true );
Licentie
GPL v2 of later — Gebouwd door KeurigOnline