bp_activity_admin_edit_metabox_userid

User ID metabox for the Activity admin edit screen.

Description

bp_activity_admin_edit_metabox_userid( (object) $item ); 

Parameters (1)

0. $item (object)
Activity item.

Usage

  1. if ( !function_exists( 'bp_activity_admin_edit_metabox_userid' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-activity/bp-activity-admin.php'; 
  3.  
  4. // Activity item. 
  5. $item = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_activity_admin_edit_metabox_userid($item); 
  9.  

Defined (1)

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

/bp-activity/bp-activity-admin.php  
  1. function bp_activity_admin_edit_metabox_userid( $item ) { 
  2. ?> 
  3.  
  4. <label class="screen-reader-text" for="bp-activities-userid"><?php 
  5. /** translators: accessibility text */ 
  6. _e( 'Author ID', buddypress ); 
  7. ?></label> 
  8. <input type="number" name="bp-activities-userid" id="bp-activities-userid" value="<?php echo esc_attr( $item->user_id ); ?>" min="1" /> 
  9.  
  10. <?php