Display the wp_user.login in the table
This commit is contained in:
@@ -9,11 +9,11 @@ class WpUsers < WpItems
|
|||||||
# @return [ void ]
|
# @return [ void ]
|
||||||
def output(options = {})
|
def output(options = {})
|
||||||
rows = []
|
rows = []
|
||||||
headings = ['Id', 'Name']
|
headings = ['Id', 'Login', 'Name']
|
||||||
headings << 'Password' if options[:show_password]
|
headings << 'Password' if options[:show_password]
|
||||||
|
|
||||||
self.each do |wp_user|
|
self.each do |wp_user|
|
||||||
row = [wp_user.id, wp_user.display_name]
|
row = [wp_user.id, wp_user.login, wp_user.display_name]
|
||||||
row << wp_user.password if options[:show_password]
|
row << wp_user.password if options[:show_password]
|
||||||
rows << row
|
rows << row
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user