bp_activity_admin_edit_metabox_itemids( object $item )
Primary item ID/Secondary item ID metabox for the Activity admin edit screen.
Description
Parameters
- $item
-
(Required) Activity item.
Source
File: bp-activity/bp-activity-admin.php
1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 | function bp_activity_admin_edit_metabox_itemids( $item ) { ?> <label for = "bp-activities-primaryid" ><?php _e( 'Primary Item ID' , 'buddyboss' ); ?></label> <input type= "number" name= "bp-activities-primaryid" id= "bp-activities-primaryid" value= "<?php echo esc_attr( $item->item_id ); ?>" min= "0" /> <br /> <label for = "bp-activities-secondaryid" ><?php _e( 'Secondary Item ID' , 'buddyboss' ); ?></label> <input type= "number" name= "bp-activities-secondaryid" id= "bp-activities-secondaryid" value= "<?php echo esc_attr( $item->secondary_item_id ); ?>" min= "0" /> <p><?php _e( 'These identify the object that created this activity. For example, the fields could reference a pair of site and comment IDs.' , 'buddyboss' ); ?></p> <?php } |
Changelog
Version | Description |
---|---|
BuddyPress 1.6.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.