You appear to be a bot. Output may be restricted
Description
Format the post as specified by the userThe format= parameter is used to specify the fields to be displayed. Each field or metadata has a single digit code. The output is written to the internal buffer used by all shortcodes.
Usage
bw_format_as_required( $post, $atts );
Parameters
- $post
- ( object ) required – the post to format
- $atts
- ( array ) required – the attributes
Returns
voidSource
File name: oik/includes/bw_formatter.phpLines:
1 to 11 of 11
function bw_format_as_required( $post, $atts ) { oik_require_lib( 'bw_fields' ); $format = $atts['format']; $fs = str_split( $format ); $in_block = bw_format_block_start( $post, $atts, false ); foreach ( $fs as $f ) { $function = bw_field_function( $f ); $function( $post, $atts, $f ); } bw_format_block_end( $post, $atts, $in_block ); }View on GitHub View on Trac