/** * Check if keyword id is free (ie not already taken, and not reserved). Return bool. * */ function yourls_keyword_is_free($keyword) { $free = true; if (yourls_keyword_is_reserved($keyword) or yourls_keyword_is_taken($keyword)) { $free = false; } return yourls_apply_filter('keyword_is_free', $free, $keyword); }
function yourls_keyword_is_free($keyword) { if (yourls_keyword_is_reserved($keyword) or yourls_keyword_is_taken($keyword)) { return false; } return true; }