You appear to be a bot. Output may be restricted
Description
Load the filenames for the selected component
Usage
$array = oiksc_load_files( $plugin, $component_type );
Parameters
- $plugin
- ( string ) required – the component name – it could be a theme
- $component_type
- ( string ) required – the component type: "plugin"|"theme"| ?
Returns
array array of file namesSource
File name: oik-shortcodes/admin/oik-apis.phpLines:
1 to 22 of 22
function oiksc_load_files( $plugin, $component_type ) { switch ( $component_type ) { case "wordpress": oik_require( "oik-list-wordpress-files.php", "oik-batch" ); $files = _la_get_wordpress_files(); $plugin = null; break; case "plugin": //wp_register_plugin_realpath( WP_PLUGIN_DIR . "/$plugin/." ); $files = _oiksc_get_files( WP_PLUGIN_DIR . "/$plugin" ); break; case "theme": $files = _oiksc_get_files( get_theme_root() . "/$plugin", false ); break; default: echo "Unrecognised component: $plugin" . PHP_EOL; } bw_trace2( $files, "files", true, BW_TRACE_DEBUG ); //echo "WP_PLUGIN_DIR" . WP_PLUGIN_DIR . PHP_EOL; //echo "THEME_ROOT" . get_theme_root() . PHP_EOL; return( $files ); }View on GitHub