You appear to be a bot. Output may be restricted
Description
Return the function to be used to format postsIf the format parameter is specified it uses the dynamically loaded bw_format_as_required() function else it uses the original function bw_format_post()
Usage
$string = bw_query_post_formatter( $atts );
Parameters
- $atts
- ( array ) required – shortcode parameters which may include format=specification
Returns
string function name to be used to format postsSource
File name: oik/shortcodes/oik-pages.phpLines:
1 to 10 of 10
function bw_query_post_formatter( $atts ) { $format = bw_array_get( $atts, "format", null ); if ( $format ) { oik_require( "includes/bw_formatter.php" ); $bw_post_formatter = "bw_format_as_required"; } else { $bw_post_formatter = "bw_format_post"; } return( $bw_post_formatter ); }View on GitHub View on Trac