WordPress Connector Architecture
WordPress Thin-Shell Connector Setup
How Rankwyn hooks into Gutenberg, post meta tables, and WordPress REST API with zero database bloat.
Install & Test the Connector
Rankwyn operates via a lightweight REST hook that registers endpoints under /wp-json/rankwyn/v1/sync. Copy the plugin below, then run a handshake test against your site.
SINGLE-FILE THIN SHELL PLUGIN CODE
rankwyn-wp-connector.php
<?php
/**
* Plugin Name: Rankwyn WP Connector Shell
* Description: Thin-shell API connector for Rankwyn Multi-Site SEO & AEO Control Plane.
* Version: 1.2
* Author: Rankwyn Engineering
*/
if (!defined('ABSPATH')) exit;
add_action('rest_api_init', function () {
register_rest_route('rankwyn/v1', '/sync', [
'methods' => 'POST',
'callback' => 'rankwyn_sync_payload',
'permission_callback' => 'rankwyn_verify_key'
]);
});
function rankwyn_verify_key($request) {
$key = $request->get_header('X-Rankwyn-Key');
return get_option('rankwyn_api_hash') === hash('sha256', $key);
}
function rankwyn_sync_payload($request) {
$params = $request->get_json_params();
if (!empty($params['meta_title'])) {
update_post_meta($params['post_id'], '_rankwyn_title', sanitize_text_field($params['meta_title']));
}
return new WP_REST_Response(['success' => true, 'version' => '1.2'], 200);
}WordPress REST API Handshake Simulator
Test authentication and latency against your WordPress REST hook.