You appear to be a bot. Output may be restricted
Description
Implement "oiksc_shortcodes_components" for 'oik' known shortcodesFor each shortcode, if we can find a $bw_sc_file[$shortcode] value then we set the plugin name to the component part of the $file's path. Doing the reverse of bw_add_shortcode_file().
Usage
$array = oiksc_shortcodes_components_oik( $shortcodes );
Parameters
- $shortcodes
- ( mixed ) required –
Returns
array updated to reflect the implementing pluginSource
File name: oik-shortcodes/admin/oik-create-codes.phpLines:
1 to 12 of 12
function oiksc_shortcodes_components_oik( $shortcodes ) { global $bw_sc_file; foreach ( $shortcodes as $shortcode => $function ) { $file = bw_array_get( $bw_sc_file, $shortcode, null ); if ( $file ) { $component = oiksc_get_component_name_from_file( $file ); echo "$shortcode : $component" . PHP_EOL; $shortcodes[$shortcode] = $component; } } return( $shortcodes ); }View on GitHub