get_dropins [ WordPress Function ]
get_dropins ( No parameters )
| Returns: |
|
| Defined at: |
|
Check the wp-content directory and retrieve all drop-ins with any plugin data.
Source
<?php
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;
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- get_dropins() WordPress function reference, arguments and source ...
Check the wp-content directory and retrieve all drop-ins with any plugin data.
queryposts.com - PHPXRef 0.7 : WordPress : Detail view of plugin.php
get_plugin_data() _get_plugin_data_markup_translate() get_plugin_files() get_plugins() get_mu_plugins() _sort_uname_callback() get_dropins() _get_dropins() ...
phpxref.ftwr.co.uk - [udig-devel] Automate language fragment gathering
Jan 22, 2012 ... With that assumption I should get: dropins/features/udig_language dopins/ plugins/ (the nl plugins) I don't really think that is correct ...
lists.refractions.net - Docs for page plugin.php
array get_dropins (). get_mu_plugins (line 304). Check the mu-plugins directory and retrieve all mu-plugin files with any plugin data. WordPress only includes ...
phpdoc.wordpress.org