why wrapper function was not called??
Wrapper function
Hello @ianmendonca1996_3e8253ca9dafc54d,
wrapper function is working if you lookin login_required() function we passing any function as parameter which is called under if statement if login credentials matches.
We have defined a function add() and passing two parameters (1,2) in actual call.
protected_add(“jatin”,“pssword”,1,2)
now if will first go login_required function with parameter function as add then it will under wrapper if. which is true so it calls add(1,2).
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.