Description
Validate the plugin name: plugin must not be blank
Usage
$bool = oik_plugins_validate_plugin( $plugin );Parameters
- $plugin
- ( string ) required – plugin name
Returns
bool true if the plugin name is validSource
File name: oik/libs/oik_plugins.phpLines:
1 to 11 of 11
function oik_plugins_validate_plugin( $plugin ) { $valid = isset( $plugin ); if ( $valid ) { $plugin = trim( $plugin ); $valid = strlen( $plugin ) > 0; } if ( !$valid ) { BW_::p( __( "settings must not be blank", null ) ); } return $valid; }View on GitHub View on Trac
Called by
1 to 1 of 1
