« Return to Thread: row output on wp-admin/users.php

Re: row output on wp-admin/users.php

by Matt Martz-2 :: Rate this Message:

Reply to Author | View in Thread

> so I did:
>
> add_action('manage_users_custom_column', 'MY_user_cols_cc', 10, 3);
>
> function MY_user_cols_cc($empty_var, $user_object, $column_name) {
> /*
> strange thing #1:
> $user_object contains the value of $column_name and
> $column_name contains the value of $user_object

If you look at where manage_users_custom_column is defined in the code
you will see:

apply_filters('manage_users_custom_column', '', $column_name, $user_object->ID);

Where $column_name is the 2nd argument and $user_object->ID is the 3rd argument.

You have the arguments reversed in your callback function.

--
Matt Martz
matt@...
http://sivel.net/
_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

 « Return to Thread: row output on wp-admin/users.php