Add to functions.php
Site-specific plugin to add to functions.php without losing changes on each theme update, and without having to create a child theme.
- create folder eg. lottofaucet-plug-in
- create text file named e.g. lottofaucet-plug-in.php
- paste in code below
- create zip from folder
- upload to site.
<?php
/*
Plugin Name: Site Plugin for lottofaucet.com
Description: Site specific code changes for lottofaucet.com
*/
/* Start Adding Functions Below this Line */
/* Stop Adding Functions Below this Line */
?>
put the php you want in between the start/stop comments.
Using code snippets plug-in instead for now.