You appear to be a bot. Output may be restricted
Description
Display a link to "external" shortcode helpPlugins can intercept the shortcode link to provide their own links to further documentation e.g. diy-oik will produce a link to the user's own definition of the DIY shortcode.
Usage
bw_sc_link( $shortcode, $callback );
Parameters
- $shortcode
- ( string ) required – the shortcode
- $callback
- ( mixed ) optional – the callback function – which may not be passed
Returns
voidSource
File name: oik/shortcodes/oik-codes.phpLines:
1 to 12 of 12
function bw_sc_link( $shortcode, $callback=null ) { $function = bw_get_shortcode_function( $shortcode, $callback ); $link = oik_get_shortcodes_server( $shortcode ); $link .= "/oik-shortcodes/$shortcode/$function"; $link = apply_filters( "bw_sc_link", $link, $shortcode, $function ); if ( $link ) { /* translators: %s: shortcode name */ BW_::alink( NULL, $link, "$shortcode", sprintf( __( '%1$s help', "oik" ), $shortcode ) ); } else { e( $shortcode ); } }View on GitHub View on Trac