[ XREF Home ] [ Index ]

PHP Cross Reference of WordPress Trunk

Provided by Yoast

title

Body

[close]

/wp-admin/includes/ -> theme.php (summary)

WordPress Theme Administration API

File Size: 408 lines (13 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 2 files
 wp-admin/admin-header.php
 wp-admin/admin-footer.php

Defines 9 functions

  current_theme_info()
  delete_theme()
  get_broken_themes()
  get_allowed_themes()
  get_page_templates()
  _get_template_edit_filename()
  theme_update_available()
  get_theme_feature_list()
  themes_api()

Functions
Functions that are not part of a class:

current_theme_info()   X-Ref
{@internal Missing Short Description}}

return: unknown

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_broken_themes()   X-Ref
{@internal Missing Short Description}}

return: unknown

get_allowed_themes()   X-Ref
Get the allowed themes for the current blog.

return: array $themes Array of allowed themes.

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()   X-Ref
Retrieve list of WordPress theme features (aka theme tags)

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: Wed Jun 1 08:30:02 2011 Cross-referenced by PHPXref 0.7
Provided by Yoast and awesome WordPress Hosting