Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Where did you set any ordering functionality for your column? It's supposed to be a default functionality? I'm trying to order by "Role", not working :) Commented Mar 13, 2019 at 21:51
  • I think that's the fc_my_sortable_cake_column() function, coupled with the add_filter( 'manage_users_sortable_columns', 'fc_my_sortable_cake_column' ); call. I would try that code, replacing $columns['vendor_id'] = 'Vendor ID'; with $columns['role'] = 'Role';. Commented Mar 14, 2019 at 18:20
  • 1
    ...I've just tried it (by adding $columns['role'] = 'Role'; to my fc_my_sortable_cake_column function). It works. :-) Commented Mar 14, 2019 at 18:22