get_dropins [ WordPress-Funktionen ]
get_dropins ( Keine Parameter )
| Gibt zurück: |
|
| Definiert in: |
|
| Codex |
Check the wp-content directory and retrieve all drop-ins with any plugin data.
Quellcode
function get_dropins() {
$dropins = array();
$plugin_files = array();
$_dropins = _get_dropins();
// These exist in the wp-content directory
if ( $plugins_dir = @ opendir( WP_CONTENT_DIR ) ) {
while ( ( $file = readdir( $plugins_dir ) ) !== false ) {
if ( isset( $_dropins[ $file ] ) )
$plugin_files[] = $file;
}
} else {
return $dropins;
}
@closedir( $plugins_dir );
if ( empty($plugin_files) )
return $dropins;
foreach ( $plugin_files as $plugin_file ) {
if ( !is_readable( WP_CONTENT_DIR . "/$plugin_file" ) )
continue;
$plugin_data = get_plugin_data( WP_CONTENT_DIR . "/$plugin_file", false, false ); //Do not apply markup/translate as it'll be cached.
if ( empty( $plugin_data['Name'] ) )
$plugin_data['Name'] = $plugin_file;
$dropins[ $plugin_file ] = $plugin_data;
}
uksort( $dropins, 'strnatcasecmp' );
return $dropins;
}Beispiele [ wp-snippets.com ]
Top Google Suchergebnisse
- Docs for page plugin.php
get_admin_page_title (line 1435). void get_admin_page_title (). get_dropins ( line 361) ... array get_dropins (). get_mu_plugins (line 304). Check the mu- plugins ...
phpdoc.wordpress.org - get_udims (WordPress Function) - WPSeek.com
Similar Functions: get_dirsize, get_dropins, get_plugins, get_links, get_terms. Calculated the new dimensions for a downsampled image.
wpseek.com - get_dropins - A WordPress-centric search engine for devs and ...
Returns drop-ins that WordPress uses. WordPress lookup for _get_dropins, a WordPress Function.
wpseek.com - What WordPress API function lists active/inactive plugins ...
May 15, 2012... network activated; validate_active_plugins() Checks all active plugins and deactivates invalid ones; get_dropins() Gets plugins in wp-content ...
wordpress.stackexchange.com
