php call_user_func_array parameter
The $current_user
has the value:
New_User Object
(
[data] => stdClass Object
(
[ID] => 1
[user_login] => admin
)
[ID] => 1
[caps] => Array
(
)
)
The function call:
call_user_func_arr开发者_如何转开发ay( array( &$current_user, 'can_do' ), $args );
Which functions are called in this statement?
This will call the can_do
method of $current_user
object's class
.
See the given examples in manual
精彩评论