/bp-templates/bp-legacy/buddypress/members/single/settings/capabilities.php

  1. <?php 
  2. /** 
  3. * BuddyPress - Members Settings Capabilities 
  4. * 
  5. * @package BuddyPress 
  6. * @subpackage bp-legacy 
  7. */ 
  8.  
  9. /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */ 
  10. do_action( 'bp_before_member_settings_template' ); ?> 
  11.  
  12. <form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/capabilities/'; ?>" name="account-capabilities-form" id="account-capabilities-form" class="standard-form" method="post"> 
  13.  
  14. <?php 
  15.  
  16. /** 
  17. * Fires before the display of the submit button for user capabilities saving. 
  18. * 
  19. * @since 1.6.0 
  20. */ 
  21. do_action( 'bp_members_capabilities_account_before_submit' ); ?> 
  22.  
  23. <label for="user-spammer"> 
  24. <input type="checkbox" name="user-spammer" id="user-spammer" value="1" <?php checked( bp_is_user_spammer( bp_displayed_user_id() ) ); ?> /> 
  25. <?php _e( 'This user is a spammer.', 'buddypress' ); ?> 
  26. </label> 
  27.  
  28. <div class="submit"> 
  29. <input type="submit" value="<?php esc_attr_e( 'Save', 'buddypress' ); ?>" id="capabilities-submit" name="capabilities-submit" /> 
  30. </div> 
  31.  
  32. <?php 
  33.  
  34. /** 
  35. * Fires after the display of the submit button for user capabilities saving. 
  36. * 
  37. * @since 1.6.0 
  38. */ 
  39. do_action( 'bp_members_capabilities_account_after_submit' ); ?> 
  40.  
  41. <?php wp_nonce_field( 'capabilities' ); ?> 
  42.  
  43. </form> 
  44.  
  45. <?php 
  46.  
  47. /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */ 
  48. do_action( 'bp_after_member_settings_template' ); ?> 
.