I know how to include my own functions by writing them into the theme's functions.php
and enqueuing them, or by including a php file containing all that in functions.php
.
But that is always bound to the used theme. If I switch to another theme, I always have to copy that code to the new theme's functions.php
Is there any way around that - a place/file where I can define and enqueue scripts that remain valid across all themes? (without loosing it when WP is updated)?