Notify Google instantly for faster indexing of your WordPress content, like job postings and live streams, via the Indexing API.
Swift Index helps you get your new and updated content crawled more quickly by Google through the official Google Indexing API. This plugin allows you to:
- Notify Google Instantly: Automatically send notifications to Google when posts (of selected types) are published, updated, or deleted.
- Lightweight & Secure: Uses the official
google/authlibrary for secure OAuth 2.0 authentication with Service Account JSON keys, and WordPress HTTP functions (wp_remote_post()) for API calls, aiming for a smaller footprint. - Configurable Post Types: Choose which post types (e.g., posts, pages, job listings, other custom post types) are eligible for API notifications.
- Per-Post Control: Enable or disable API notifications for individual posts directly from a meta box in the post editor.
- Submission Status in Editor: View the latest API submission status for the current post directly within the post editor meta box.
- Admin List Table Integration: See a summary of the latest API submission for each post in the date column of the admin post list tables for targeted post types.
- Detailed Logging:
- Keep track of all API submission attempts (URL, type, status code, response message, timestamp) in a dedicated log table.
- View, search, sort, and paginate through logs in a user-friendly tab on the plugin's admin page.
- Log Management:
- Flexible Log Rotation: Choose your preferred log retention policy: keep only the latest log entry for each individual post (this is the default setting), keep logs for a specific number of days, or limit to a maximum number of total entries.
- Manually delete all logs with a confirmation step.
- Data Control on Uninstall: Option to delete all plugin-specific data (settings and logs) from the database when the plugin is uninstalled.
- Dependency Scoping: Utilizes PHP-Scoper to prefix its PHP dependencies, significantly reducing the risk of conflicts with other plugins or themes.
- Translation Ready: Fully translatable, with English and Japanese language files included as a starting point.
- User-Friendly Interface: Tabbed admin page for easy access to settings and logs.
This plugin is particularly effective for enhancing timely indexing by Google for job posting pages utilizing JobPosting structured data and live streaming event pages with VideoObject containing a BroadcastEvent, especially when this structured data is provided using the JSON-LD format. For these specific types of content, prompt indexing is crucial for maximizing visibility and relevance.
The development of Swift Index is managed on GitHub. If you are a developer and would like to contribute to the project, report an issue, or follow along with development, please visit our GitHub repository:
We welcome bug reports, feature requests, and pull requests.
Want to contribute to Swift Index? That's great! Please head over to our GitHub repository to find out how you can help. We appreciate all contributions, from reporting bugs to submitting new features.
-
Upload and Install:
- Download the
swift-index.zipfile from the WordPress.org plugin directory (once approved) or the GitHub Releases page. - In your WordPress admin panel, go to "Plugins" > "Add New Plugin".
- Click on "Upload Plugin" and choose the
swift-index.zipfile. - Alternatively, unzip the plugin and upload the
swift-indexfolder to your/wp-content/plugins/directory.
- Download the
-
Activate: Activate the plugin through the "Plugins" menu in WordPress.
-
Initial Setup (Crucial Steps): After activation, you must configure the plugin to connect to the Google Indexing API. This involves several steps in the Google Cloud Platform and Google Search Console.
-
A. Google Cloud Platform (GCP) Setup:
- Go to the Google Cloud Console.
- Create a new project or select an existing one.
- Enable the Indexing API: In the API Library, search for "Indexing API" and enable it for your project.
- Create a Service Account:
- Go to "IAM & Admin" > "Service Accounts".
- Click "Create Service Account".
- Fill in a service account name (e.g., "Swift Index Service").
- Grant this service account the "Owner" role for the project. (Note: For simplicity, "Owner" is suggested for setup. Advanced users might consider a custom role with minimal necessary permissions, though Indexing API often implies broad site access via Search Console delegation).
- Click "Done".
- Create a Service Account Key:
- Find your newly created service account in the list.
- Click on the service account's email address.
- Navigate to the "KEYS" tab.
- Click "ADD KEY" > "Create new key".
- Choose "JSON" as the key type and click "CREATE".
- A JSON file will be downloaded. Keep this file secure and confidential.
-
B. Google Search Console Setup:
- Go to Google Search Console.
- Ensure your website (e.g.,
https://yourdomain.com) is added as a property and that you have verified ownership. - For your property, go to "Settings" (usually at the bottom of the left sidebar).
- Click on "Users and permissions".
- Click the "ADD USER" button.
- In the "Email address" field, paste the email address of the Service Account created in GCP (it looks like
your-service-account-name@your-project-id.iam.gserviceaccount.com). - Set the "Permission" to "Owner". This is required for the Indexing API.
- Click "ADD".
-
C. Plugin Configuration:
- In your WordPress admin, go to "Settings" > "Swift Index".
- On the "Settings" tab, find the "Service Account JSON" textarea.
- Open the JSON key file you downloaded from GCP in a text editor.
- Copy the entire content of the JSON file.
- Paste the copied JSON content into the textarea in the plugin settings.
- Configure other settings as needed: "Target Post Types", "Log Rotation", and "Data on Uninstall".
- Click "Save Settings".
-
-
Test: Create or update a post of a targeted post type. Check the "Notification Logs" tab in the plugin settings or the meta box in the post editor to see the submission status.
You need a Google Account, a project in Google Cloud Platform with the Indexing API enabled, a Service Account JSON key, and a verified property in Google Search Console where the Service Account is added as an Owner.
Follow the detailed steps in the "Installation" section (Step 3.A).
You can select any registered post type (posts, pages, custom post types like 'job_listing', etc.) from the plugin's "Target Post Types" setting.
- Check the "Notification Logs" tab under "Settings" > "Swift Index" in your WordPress admin.
- The post edit screen for targeted post types will show a meta box with the latest submission status.
- Monitor Google Search Console for crawl activity and indexing status updates (these may not be immediate).
Swift Index helps Google discover your new or updated content much faster by using the Indexing API. This can lead to quicker crawling and potentially faster indexing. However, Google makes the final decision on indexing and ranking based on many factors (content quality, site authority, etc.). This plugin facilitates discovery, not ranking.
- Initial public release by FirstElement.
- Features:
- Integration with Google Indexing API using Service Account JSON key (
google/authlibrary andwp_remote_post()). - Automatic notification to Google on publish, update, or deletion of targeted post types.
- Admin settings page with tabbed UI:
- Service Account JSON configuration.
- Selection of target post types for notifications.
- Configurable log rotation: keep only the latest log for each post (default option), by duration (days), or by total number of entries.
- Option to delete all plugin data (settings, logs) upon uninstallation.
- Detailed logging of API submissions (URL, type, status, message, timestamp) in a custom database table.
- Log viewer with search, sort, and pagination (
WP_List_Table). - Manual "Delete All Logs" button with confirmation.
- Meta box on post edit screens for targeted post types:
- Toggle to enable/disable API submission for the individual post.
- Display of the latest API submission log for that post.
- Link to full logs page for administrators.
- Display of latest API submission summary in the date column of admin post list tables for targeted types.
- PHP dependencies are scoped using PHP-Scoper to prevent conflicts.
- Translation-ready with initial English and Japanese language files.
- Developed with contributions from dxd5001.
- Integration with Google Indexing API using Service Account JSON key (
