You appear to be a bot. Output may be restricted
Description
Implement [bw_blogs] shortcode to list the blogs on the multisite
Usage
$string = bw_blogs( $atts, $content, $tag );
Parameters
- $atts
- ( array ) optional – expected to either contain "blogs" or uses the index 0 values
- $content
- ( string ) optional – not expected
- $tag
- ( string ) optional – the shortcode used
Returns
string nothing is generated directly by this shortcodeSource
File name: oik-ms/shortcodes/oik-blogs.phpLines:
1 to 15 of 15
function bw_blogs( $atts=null, $content=null, $tag=null ) { if ( is_multisite() ) { $blogs = bw_array_get_from( $atts, "blogs,0", null ); if ( $blogs ) { $blogs = bw_as_array( $blogs ); } else { $blogs = bw_get_blog_list(); } bw_display_blogs( $blogs ); } else { bw_trace2( "bw_blogs shortcode not effective in a non-multisite implementation" ); } return( bw_ret() ); }View on GitHub