get_bb_file_loc() WPSCache 1.0
No Hooks.
Return
Null. Nothing.
Usage
get_bb_file_loc();
Code of get_bb_file_loc() get bb file loc WPSCache 1.7.1
function get_bb_file_loc() {
global $cache_badbehaviour_file;
if ( $cache_badbehaviour_file ) {
return $cache_badbehaviour_file;
}
if ( file_exists( WP_CONTENT_DIR . '/plugins/bad-behavior/bad-behavior-generic.php' ) ) {
$bbfile = WP_CONTENT_DIR . '/plugins/bad-behavior/bad-behavior-generic.php';
} elseif ( file_exists( WP_CONTENT_DIR . '/plugins/Bad-Behavior/bad-behavior-generic.php' ) ) {
$bbfile = WP_CONTENT_DIR . '/plugins/Bad-Behavior/bad-behavior-generic.php';
} else {
$bbfile = false;
}
return $bbfile;
}