You appear to be a bot. Output may be restricted
Description
Add a field from another entry in the array
Usage
bw_add_array_key( $plugin_data, $src, $target );
Parameters
- $plugin_data
- ( mixed ) required –
- $src
- ( mixed ) required –
- $target
- ( mixed ) optional –
Returns
voidSource
File name: oik-bob-bing-wide/shortcodes/oik-plug.phpLines:
1 to 7 of 7
function bw_add_array_key( &$plugin_data, $src, $target=null ) { if ( !$target ) { $target = strtolower( $src ); } $value = bw_array_get( $plugin_data, $src, null ); $plugin_data[$target] = $value; }View on GitHub