How-to use SEOPress hooks

Hooks allow you to trigger additional actions or filter data when the page loads.

This allows developers to change the behavior of SEOPress as they please.

More than 120 hooks are available for SEOPress, and new ones are added regularly.

The list of hooks is available here.

Check that you have the minimum version required to apply a hook (mentioned at the beginning of the article).

In almost all cases, the code can be copied and pasted into the functions.php file of your child theme / theme.

Read the comments in the code carefully to help you decide whether or not to modify it, and if so, how.

Always save your functions.php file before changes.

Once your code is in place, make sure to test it on different pages of your site.

Check your error logs and fixed them if needed.

Et voilà!

Last modified: August 15, 2019