register_activation_hook for themes too.
|Reported by:||F J Kaiser||Owned by:|
After getting around the settings API i found out, that it's meant for plugins, but useable for themes too. The only thing, that doesn't work is register_acitvation_hook, because of the use of the plugin_basename()-function. You can find both functions in /wp-includes/plugin.php line 490 and line 547 to take a look.
Benefits for themes would be a) a much clearer structure possible in admin-option-page files and b) you could opt in default-options or check for different stuff if it's there.