[wp-hackers] row output on wp-admin/users.php

Matt Martz matt at sivel.net
Mon Jul 20 20:48:10 UTC 2009


> 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 at sivel.net
http://sivel.net/


More information about the wp-hackers mailing list