- Adding custom code code to WordPress website files (such as theme file functions.php or a specific plugin) is unsafe, because:
- it can break the WP website,
- updating WP theme removes all customizations.
- Code Snippets plugin can be used to add custom code snippets without editing WordPress core.
- You can use it to add PHP, HTML, CSS or JS code.
- You just paste your code in the plugin and activate it.
- Where to find snippets of code? All of the internet! 😄