[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-legacy/buddypress/members/single/settings/ -> capabilities.php (source)

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


Generated: Tue Dec 10 01:01:39 2019 Cross-referenced by PHPXref 0.7.1