Description
Example for [bw_thumbs] shortcode
Usage
bw_thumbs__example( $shortcode );Parameters
- $shortcode
- ( mixed ) optional default: bw_thumbs –
Returns
voidSource
File name: oik/shortcodes/oik-thumbs.phpLines:
1 to 5 of 5
function bw_thumbs__example( $shortcode="bw_thumbs" ) { $text = __( "To display 3 thumbnail images", "oik" ) ; $example = 'numberposts=3 post_type=attachment post_mime_type=image'; bw_invoke_shortcode( $shortcode, $example, $text ); }View on GitHub View on Trac
Called by
1 to 2 of 2
- Tests_shortcodes_oik_thumbs::test_bw_thumbs__example() – Since it’s not easy to verify and all we want to do at present is to check the i18n/10n of the text preceding – We run the example twice – but throw away the output of the first call – Prior to running the second test we remove the shortcode.
- Tests_shortcodes_oik_thumbs::test_bw_thumbs__example_bb_BB() –
