If you need help adding PHP code snippets to WordPress here 2 ways you can use to add code snippets to your site.
before you get started, you might want to perform a backup of your site.
That way, if something goes wrong while adding your code, you can simply restore your content.