Directory / plugin
TONKATSU (Template-Oriented No-database Knowledge-graph & Tag Setup Utility)
v0.0.2 · by LionHeart Group
TONKATSU outputs SEO metadata, structured data and sitemap adjustments configured entirely in theme code.
About this plugin
Template-Oriented No-database Knowledge-graph & Tag Setup Utility (TONKATSU) handles the SEO output of a WordPress site — title, meta description, canonical, robots, Open Graph, Twitter Card and JSON-LD — and adjusts WordPress core’s XML sitemaps.
Everything is configured in the theme’s PHP code, on init. No configuration is stored in the database and there is no settings screen, so the SEO configuration is reviewed, versioned and deployed together with the templates that render the pages. A read-only screen under Tools shows what the theme registered and what each page resolves to.
Redirects (exact paths, path prefixes and regular expressions, including 410 Gone) are registered in the theme too, so moved URLs are kept with the code that moved them. Optionally, TONKATSU logs the redirects it answers — the only data it ever stores in the database.
Per-post values that editors maintain (for example in custom fields) are supplied through the tonkatsu_post_values filter.
TONKATSU stands down while Rank Math, Yoast SEO, All in One SEO or SEOPress is active, and shows an admin notice instead.
GitHub and documentation for this plugin can be found at:
https://github.com/lionheart-group/wp-template-oriented-plugins/tree/master/plugins/tonkatsu-seo