Need to prepend function names
-
Nice plugin, but you REALLY need to prepend function names, especially those with common names like “register_session” and “remove_admin_bar”. Otherwise, you will likely create conflicts with some other plugin using the same function name.
In the case of regsiter_session, you might not want to call this function if another already has, so an alternative might be:
if(!function_exists(‘register_session’) {
function register_session() {
// Your code here
}
}
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Need to prepend function names’ is closed to new replies.