register_theme_directory [ WordPress Function ]
register_theme_directory ( $directory )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: search_theme_directories, get_template_directory, get_stylesheet_directory, get_template_directory_uri, get_stylesheet_directory_uri
Register a directory that contains themes.
Source
<?php
function register_theme_directory( $directory ) {
global $wp_theme_directories;
if ( ! file_exists( $directory ) ) {
// Try prepending as the theme directory could be relative to the content directory
$directory = WP_CONTENT_DIR . '/' . $directory;
// If this directory does not exist, return and do not register
if ( ! file_exists( $directory ) )
return false;
}
$wp_theme_directories[] = $directory;
return true;
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/register theme directory « WordPress Codex
Description. Register a directory that contains themes. Usage. <?php register_theme_directory( $directory ) ?> Parameters. $directory: (string) ( required) Either ...
codex.wordpress.org - [Plugin: Theme-Check] Doesn't work with register_theme_directory
Hi pross. Just a heads-up that the checker won't work with themes that live outside of the wp-content/themes/ directory. For example BuddyPress' default theme ...
wordpress.org - Fatal error:Call to undefined function register_theme_directory() in ...
[resolved] Fatal error:Call to undefined function register_theme_directory() in wp- settings (5 posts). vabesh. Member Posted 4 months ago #. I was trying to ...
wordpress.org - register_theme_directory
Function and Method Cross Reference. register_theme_directory(). Defined at: / wp-includes/theme.php -> line 284. Referenced 1 times: /wp-settings.php -> line ...
phpxref.ftwr.co.uk