You appear to be a bot. Output may be restricted
Description
Process a fileWe process .php and .inc files Note: WordPress doesn't have any .inc files
Usage
_ca_dofile_local( $file, $plugin, $component_type );
Parameters
- $file
- ( string ) required – the file name – fully qualified
- $plugin
- ( string ) required – the plugin or theme name
- $component_type
- ( string ) required – "plugin", "theme" or "wordpress"
Returns
voidTO DO
Expand to cover ALL files.Source
File name: oik-shortcodes/admin/oik-create-apis.phpLines:
1 to 18 of 18
function _ca_dofile_local( $file, $plugin, $component_type ) { if ( $plugin ) { $inignorelist = _la_checkignorelist( $file ); } else { $inignorelist = false; } if ( !$inignorelist ) { echo "Processing: $file". PHP_EOL; $ext = pathinfo( $file, PATHINFO_EXTENSION ); $ext = strtolower( $ext ); $exts = bw_assoc( array( "php", "inc" )); $validext = bw_array_get( $exts, $ext, false ); if ( $validext ) { _lf_dofile_local( $file, $plugin, $component_type ); _ca_doapis_local( $file, $plugin, $component_type ); } } }View on GitHub