[ Index ] |
WordPress Cross Reference |
[Source view] [Print] [Project Stats]
WordPress Theme Administration API
File Size: | 455 lines (17 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($stylesheet, $redirect = '') X-Ref |
Remove a theme param: string $stylesheet Stylesheet 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. |
get_theme_update_available( $theme ) X-Ref |
Retrieve the update link if there is a theme update available. Will return a link if there is an update available. param: WP_Theme $theme WP_Theme object. return: string|bool HTML for the update link, or false if invalid 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 The requested action. Likely values are 'theme_information', param: array|object $args Optional. Arguments to serialize for the Theme Info API. return: mixed |
wp_prepare_themes_for_js( $themes = null ) X-Ref |
Prepare themes for JavaScript. param: array $themes Optional. Array of WP_Theme objects to prepare. return: array An associative array of theme data, sorted by name. |
Generated: Tue Mar 25 01:41:18 2014 | WordPress honlapkészítés: online1.hu |