Filters the currently-selected admin theme. Changing the theme name through this filter will cause Omeka to use a different theme to display the admin interface.
Arguments
- string
$themeName
{{#if - | (optional)}}
- The currently-selected admin theme.
- {{#if: | Default:
{{{default}}}
}}
Example
add_filter('admin_theme_name', 'my_plugin_admin_theme_name'); function my_plugin_admin_theme_name($publicTheme) { if ($someCondition) { return 'different-theme'; } else { return $publicTheme; } }
Version
This filter is available starting in Omeka 1.4.
See also
public_theme_name, the corresponding filter for the public theme.