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

Dan Cameron dan at sproutventure.com
Thu Jun 11 16:42:48 GMT 2009


Currently there's a filter for adding the column headers  
(manage_users_columns) but nothing (AFAIK) for the row output. Right  
now I'm modifying core to accomplish what we need.

Thanks in advance.



My diff for the 2.8 wp-core update is below (starts on 356 in WP 2.7):

Index: wp-admin/users.php
===================================================================
--- wp-admin/users.php	(revision 4)
+++ wp-admin/users.php	(working copy)
@@ -357,7 +357,7 @@
  	$role = array_shift($roles);

  	$style = ( ' class="alternate"' == $style ) ? '' : '  
class="alternate"';
-	echo "\n\t" . user_row($user_object, $style, $role);
+	echo "\n\t" . apply_filters( 'user_row', user_row($user_object,  
$style, $role), $userid );
  }
  ?>
  </tbody>






-- 


// Dan Cameron
SproutVenture // grow your business
http://sproutventure.com


More information about the wp-hackers mailing list