Opened 13 years ago
Closed 12 years ago
#13602 closed enhancement (duplicate)
register_activation_hook for themes too.
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Themes | Keywords: | |
Focuses: | Cc: |
Description
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.
Change History (3)
Note: See
TracTickets for help on using
tickets.
No patch & hasnt been decided as a 3.1 feature, Moving to Future Release pending.