Description
Implement [bw_mshot] shortcodeUse cache to cause the shortcode to cache the mshot as an attachment
Usage
oikms_mshot( $atts, $content, $tag );Parameters
- $atts
- ( mixed ) optional –
- $content
- ( mixed ) optional –
- $tag
- ( mixed ) optional –
Returns
voidSource
File name: oik-mshot/shortcodes/oik-mshot.phpLines:
1 to 13 of 13
function oikms_mshot( $atts=null, $content=null, $tag=null ) { $cache = bw_array_get( $atts, "cache", null ); if ( $cache ) { $atts['url'] = $cache; $src = oikms_load_mshot( $atts ); } else { $src = oikms_get_mshot_url( $atts ); } $title = bw_array_get( $atts, "title", null ); $image = retimage( "mshot", $src, $title ); e( $image ); return( bw_ret() ); }View on GitHub
Called by
1 to 2 of 2
Invoked by
Calls
1 to 4 of 4
Call hooks
API Letters:
