You appear to be a bot. Output may be restricted
Description
Implement "_sc__help" filter for diy-oikEven though we get passed a particular shortcode we return the full array of supported shortcodes. The default help for a shortcode that doesn't have it is " "
Usage
$array = diy_oik_sc__help( $default_help, $shortcode );
Parameters
- $default_help
- ( array ) required – array of help lines for 'some' shortcodes
- $shortcode
- ( string ) optional – the particular shortcode
Returns
array the filtered array of shortcode helpSource
File name: diy-oik/shortcodes/diy-oik.phpLines:
1 to 10 of 10
function diy_oik_sc__help( $default_help, $shortcode=null ) { $diy_codes = get_option( "diy_codes" ); if ( is_array( $diy_codes) && count( $diy_codes )) { bw_trace2( $diy_codes ); foreach ( $diy_codes as $code => $diy_code ) { $default_help[ $code ] = bw_array_get( $diy_code, "help", " " ); } } return( $default_help ); }