You appear to be a bot. Output may be restricted
Description
Validate the DIY shortcodeCode must not be blank
Usage
$bool = oik_diy_validate_code( $code );
Parameters
- $code
- ( string ) required – the requested DIY shortcode
Returns
bool true if validSource
File name: diy-oik/admin/diy-oik.phpLines:
1 to 12 of 12
function oik_diy_validate_code( $code ) { $valid = isset( $code ); if ( $valid ) { $code = trim( $code ); $valid = strlen( $code ) > 0; } if ( !$valid ) { p( "Shortcode must not be blank" ); } return $valid; }