/** * Plugin Name: Rank Math SEO API Integration * Description: A custom plugin to expose Rank Math SEO fields via the WordPress REST API. * Version: 1.0 * Author: Your Name * * == Documentation == * * This plugin allows you to update Rank Math SEO fields (Meta Title, Meta Description, Focus Keyword) for WordPress posts via the WordPress REST API. * * === Installation === * 1. Download and upload the plugin ZIP file to your WordPress site via the 'Plugins > Add New' menu. * 2. Activate the plugin from the WordPress dashboard. * * === API Endpoint === * After activation, you can use the following endpoint to update Rank Math SEO fields: * * Endpoint: POST /wp-json/rankmath/v1/seo/update * * === Request Parameters === * The following parameters should be included in the POST request: * * - post_id (int) : The ID of the post you want to update. * - meta_title (string) : The SEO-friendly title for the post. * - meta_description (string) : The SEO-friendly meta description for the post. * - focus_keyword (string) : The focus keyword for the post. * * Example Request: * * POST /wp-json/rankmath/v1/seo/update * { * "post_id": 123, * "meta_title": "My Post Title", * "meta_description": "Description of my post.", * "focus_keyword": "seo, python" * } * * === Example Response === * { * "message": "SEO fields updated successfully" * } * * === Notes === * - Ensure the post ID is valid and corresponds to an existing post in your WordPress site. * - Authentication (API Token or similar) may be required to make the API request. */ canine allergy treatments - Pet Health Advisor

canine allergy treatments

1 articles