You appear to be a bot. Output may be restricted
Description
Expand any shortcodes in the rowEach row in the [bw_csv] table, including the header row, may contain shortcodes which we want to expand. We do a simple check for left square brackets before attempting to expand the shortcodes If there isn't a '[' then we can save some time.
Usage
$array = bw_csv_expand_shortcodes( $tablerow );
Parameters
- $tablerow
- ( array ) required – an array of cells of content, which may contain shortcodes
Returns
array array of expanded cellsSource
File name: oik-bob-bing-wide/shortcodes/oik-csv.phpLines:
1 to 11 of 11
function bw_csv_expand_shortcodes( $tablerow ) { $et = array(); foreach ( $tablerow as $row ) { if ( false !== strpos( $row, "[" ) ) { $et[] = bw_do_shortcode( $row ); } else { $et[] = $row; } } return( $et ); }View on GitHub