bp_core_admin_user_spammed_js()
Inline script that adds the ‘site-spammed’ class to spammed users.
Description
Source
File: bp-core/admin/bp-core-admin-functions.php
function bp_core_admin_user_spammed_js() { ?> <script> jQuery( document ).ready( function($) { $( '.row-actions .ham' ).each( function() { $( this ).closest( 'tr' ).addClass( 'site-spammed' ); }); }); </script> <?php }
Changelog
Version | Description |
---|---|
BuddyPress 2.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.