bp_activity_admin_edit_metabox_link

Primary link metabox for the Activity admin edit screen.

Description

bp_activity_admin_edit_metabox_link( (object) $item ); 

Parameters (1)

0. $item (object)
Activity item.

Usage

  1. if ( !function_exists( 'bp_activity_admin_edit_metabox_link' ) ) { 
  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_link($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_link( $item ) { 
  2. ?> 
  3.  
  4. <label class="screen-reader-text" for="bp-activities-link"><?php 
  5. /** translators: accessibility text */ 
  6. _e( 'Link', buddypress ); 
  7. ?></label> 
  8. <input type="url" name="bp-activities-link" id="bp-activities-link" value="<?php echo esc_url( $item->primary_link ); ?>" aria-describedby="bp-activities-link-description" /> 
  9. <p id="bp-activities-link-description"><?php _e( 'Activity generated by posts and comments, forum topics and replies, and some plugins, uses the link field for a permalink back to the content item.', buddypress ); ?></p> 
  10.  
  11. <?php