You appear to be a bot. Output may be restricted
Description
Implement "bw_sc_link" filter for diy-oikIf the shortcode is one of ours then create a link to the DIY shortcode admin page to display a preview of the shortcode
Usage
$string = diy_oik_bw_sc_link( $link, $shortcode, $function );
Parameters
- $link
- ( string ) required – link to oik-shortcode documentation
- $shortcode
- ( string ) required – the shortcode
- $function
- ( string ) required – the implementing function
Returns
string the filtered linkTO DO
Check if we need to have the authority? The original link is of the form shown http://www.oik-plugins.com/oik-shortcodes/TODO/diy_oik_do_shortcodeSource
File name: diy-oik/shortcodes/diy-oik.phpLines:
1 to 6 of 6
function diy_oik_bw_sc_link( $link, $shortcode, $function ) { if ( $function == "diy_oik_do_shortcode" ) { $link = admin_url( "admin.php?page=diy_oik&preview_code=$shortcode" ); } return( $link ); }