Skip to content Skip to navigation
Back to the main support

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.

Hundred of 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 backup 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 with the WP DEBUG and fixed them if needed.

Et voilà!