You appear to be a bot. Output may be restricted
Description
Create an oik_file locallyCreate or update an "oik_file" post AND parse all the classes, methods and APIs implemented, including the main file, using logic similar to createapi2.php
Usage
oiksc_local_oiksc_create_file( $plugin_slug, $file, $component_type );
Parameters
- $plugin_slug
- ( string ) required –
- $file
- ( string ) required – relative file name
- $component_type
- ( string ) required –
Returns
voidSource
File name: oik-shortcodes/admin/oik-create-apis.phpLines:
1 to 26 of 26
function oiksc_local_oiksc_create_file( $plugin_slug, $file, $component_type ) { global $plugin_post; echo "Processing: $file, $plugin_slug, $component_type " . PHP_EOL; //$_REQUEST['file'] = $file; //$_REQUEST['plugin'] = if ( is_null( $plugin_slug )) { $plugin_slug = 'wordpress'; //$file = ABSPATH . $file; //$file = str_replace( "\\", "/", $file ); bw_trace2( $file, "file" ); } if ( is_null( $plugin_post ) ) { bw_trace2( null, null, true, BW_TRACE_ERROR ); bw_backtrace(); } // $plugin_post = oikp_load_plugin( $plugin ); $file_id = _oikai_create_file( $plugin_post->ID, $file ); //$filename = oik_pathw( $file, $plugin, $component_type ); $filename = $file; global $plugin; $plugin = $plugin_slug; $parsed_source = oiksc_display_oik_file( $filename, $component_type, $file_id, $plugin_slug, true ); echo PHP_EOL; oiksc_yoastseo( $file_id, $file, $plugin_slug, "file" ); oiksc_reset_globals(); }View on GitHub