| [ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
WordPress Theme Administration API
| File Size: | 295 lines (11 kb) |
| Included or required: | 1 time |
| Referenced: | 0 times |
| Includes or requires: | 2 files wp-admin/admin-header.php wp-admin/admin-footer.php |
| delete_theme($template, $redirect = '') X-Ref |
| Remove a theme param: string $template Template directory of the theme to delete param: string $redirect Redirect to page when complete. return: mixed |
| get_page_templates() X-Ref |
| Get the Page Templates available in this theme return: array Key is the template name, value is the filename of the template |
| _get_template_edit_filename($fullpath, $containingfolder) X-Ref |
| Tidies a filename for url display by the theme editor. param: string $fullpath Full path to the theme file param: string $containingfolder Path of the theme parent folder return: string |
| theme_update_available( $theme ) X-Ref |
| Check if there is an update for a theme available. Will display link, if there is an update available. param: object $theme Theme data object. return: bool False if no valid info was passed. |
| get_theme_feature_list( $api = true ) X-Ref |
| Retrieve list of WordPress theme features (aka theme tags) param: bool $api Optional. Whether try to fetch tags from the WP.org API. Defaults to true. return: array Array of features keyed by category with translations keyed by slug. |
| themes_api($action, $args = null) X-Ref |
| Retrieve theme installer pages from WordPress Themes API. It is possible for a theme to override the Themes API result with three filters. Assume this is for themes, which can extend on the Theme Info to offer more choices. This is very powerful and must be used with care, when overridding the filters. The first filter, 'themes_api_args', is for the args and gives the action as the second parameter. The hook for 'themes_api_args' must ensure that an object is returned. The second filter, 'themes_api', is the result that would be returned. param: string $action param: array|object $args Optional. Arguments to serialize for the Theme Info API. return: mixed |
| Generated: Fri May 25 03:56:23 2012 | Hosted by follow the white rabbit. |