I have written several own shortcode scripts which I place in the shortcodes.php file. My Wordpress installation is set to update to new Wordpress versions automatically, which is a good thing.
But the Wordpress updates keep overwriting the shortcodes.php file, so I have to manually add my shortcode PHP code every time after an update (and I might be away a few days or so).
Which is the preferred place to put my PHP code for the shortcodes that does not get overwritten?
Thankfully nokul