add_filter is built in function of wordpress which is used to add Hooks . In simple word above code will invoke method redirect_user_to once user login and redirect to next URL happen. From the code of redirect_user_to it seems that it check if current logged in user is member then redirect it to home page or else redirect to page from which he was initially redirected to Login page. Hope this helps you.

oo7ml
—
2012-05-29T11:21:16Z —
#3

facebookdev said:

add_filter is built in function of wordpress which is used to add Hooks . In simple word above code will invoke method redirect_user_to once user login and redirect to next URL happen. From the code of redirect_user_to it seems that it check if current logged in user is member then redirect it to home page or else redirect to page from which he was initially redirected to Login page. Hope this helps you.

Thanks, what is the 10 and 3

facebookdev
—
2012-05-29T11:26:38Z —
#4

If you check the wordpress document then it will be clear that 10 is priority and 3 is number of argument for your hook method.

oo7ml
—
2012-05-29T12:19:20Z —
#5

Ok thanks for your help

Mittineague
—
2014-09-22T05:18:31Z —
#6

This topic is now archived. It is frozen and cannot be changed in any way.