bp_core_admin_user_spammed_js

Inline script that adds the 'site-spammed' class to spammed users.

Description

bp_core_admin_user_spammed_js(); 

Usage

  1. if ( !function_exists( 'bp_core_admin_user_spammed_js' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/admin/bp-core-admin-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_core_admin_user_spammed_js(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-core/admin/bp-core-admin-functions.php  
  1. function bp_core_admin_user_spammed_js() { 
  2. ?> 
  3. <script type="text/javascript"> 
  4. jQuery( document ).ready( function($) { 
  5. $( '.row-actions .ham' ).each( function() { 
  6. $( this ).closest( 'tr' ).addClass( 'site-spammed' ); 
  7. }); 
  8. }); 
  9. </script> 
  10. <?php