Description
Display information about a blog in a particular format
Usage
bw_display_blog( $id, $atts, $content );Parameters
- $id
- ( mixed ) required –
- $atts
- ( mixed ) required –
- $content
- ( mixed ) required –
Returns
voidSource
File name: oik-ms/shortcodes/oik-blogs.phpLines:
1 to 19 of 19
function bw_display_blog( $id, $atts, $content ) { $bloginfo = bw_get_bloginfo( $id ); if ( $bloginfo ) { if ( is_numeric( $id ) ) { $url = get_blogaddress_by_id( $id ); } else { $url = get_blogaddress_by_name( $id ); } $blog = $bloginfo->blog_id; switch_to_blog( $blog ); if ( $content ) { e( bw_do_shortcode( $content ) ); } else { alink( null, $url, $bloginfo->blogname ); } restore_current_blog(); } }View on GitHub
Invoked by
Calls
1 to 2 of 2
Call hooks
API Letters:
