aioseo_save_post

This filter can be used to manipulate all SEO/social markup/schema data for an individual post when it is saved.

Parameters (1)

$post (AIOSEO\Common\Models\Post)
The AIOSEO post object.

The object properties are subject to change and therefore not included in this documentation. For a full list of object properties, we recommend inspecting an instance of this object in a local development environment.

Example code snippet

The code snippet below can be used to dynamically change the SEO title of a specific post before the metadata is saved.

Changelog

VersionDescription
4.2.2Introduced.

Implementation

Need help using our code snippets? Checkout our documentation on “How do I use your API code examples?“.

We recommend using the WPCode plugin for safe and secure implementation. WPCode performs multiple sanitization tests before activating the snippets, ensuring the safety of your website.