Need help with this?
Purchase All in One SEO Pack Pro to get dedicated support from us.
All in One SEO Pack has a very extensive API and you can find documentation on the API here.
In the API documentation you will see snippets of code that provide examples of how to use the specific API filter or hook. There are three ways you can safely add this code to your site:
- Create a custom plugin – You can find details on how to do this in the WordPress Codex here.
- Add the code to your child theme – Depending on the theme that you have, you may be able to create a child theme and add code to the functions.php file in your child theme. You can find details on how to do this in the WordPress Codex here. If you add code to your theme then it could get wiped away when you update the theme so always use a child theme.
- Perhaps the simplest solution is to use the Code Snippets plugin. You can use this plugin to add snippets of PHP code to your site.