Skip to content

Repository files navigation

Nexus – SEO REST Meta for Watchdog

License Lint Coding Standards Plugin Check Tests

Registers Yoast SEO meta fields on the watchdog post type with show_in_rest, so automation such as n8n can read and write them through the WordPress REST API.

Supports WordPress >= 5.9 on PHP >= 7.4.

Table of Contents

Getting Started

Installation

This plugin is installed from GitHub, not from WordPress.org.

  1. Clone or copy this repository into /wp-content/plugins/nexus-seo-rest.
  2. Activate Nexus – SEO REST Meta for Watchdog through the Plugins menu in WordPress.
  3. Yoast SEO should be active if you want those values to appear in Yoast's UI.

There is no settings screen.

How it works

On init (priority 20, after Yoast), the plugin registers these meta keys on the watchdog post type with show_in_rest:

  • _yoast_wpseo_focuskw — focus keyphrase
  • _yoast_wpseo_metadesc — meta description
  • _yoast_wpseo_focuskeywords — related keyphrases (Yoast Premium format)

Write access requires the edit_posts capability. The plugin does not store options and does not make outbound HTTP requests of its own.

Development

Setup

Install the development dependencies with Composer:

composer install

Running the Test Suite

The integration tests run against a real WordPress test install and a MySQL database. Install the test suite once, then run PHPUnit:

# bin/install-wp-tests.sh <db-name> <db-user> <db-pass> <db-host> <wp-version>
bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1 latest

composer test

Coding Standards

This project follows the WordPress Coding Standards and checks PHP cross-version compatibility:

composer phpcs    # check coding standards
composer phpcbf   # auto-fix what can be fixed
composer compat   # check PHP 7.4+ compatibility
composer lint     # php -l syntax check on all files

Continuous Integration

Every push and pull request runs the following GitHub Actions workflows:

Workflow Purpose
Lint php -l syntax check across the supported PHP versions
Coding Standards WordPress Coding Standards (PHPCS)
Plugin Check Official WordPress Plugin Check
Test PHPUnit across a broad WordPress × PHP matrix

A scheduled Version Monitor workflow watches for new PHP and WordPress releases so compatibility can be reviewed proactively.

Contributing

Bug reports and pull requests are welcome on GitHub.

License

This plugin is available as open source under the terms of the GPL-2.0-or-later License.


Lookit® is a registered trademark of ZENOVA CORP. Yoast is a trademark of its respective owner; this plugin is an independent integration and is not affiliated with, sponsored by, or endorsed by Yoast.

About

Expose Yoast SEO meta on the watchdog post type through the WordPress REST API.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages