bp_docs_attachment_item_markup_cb

AJAX handlers for attachments.

Description

bp_docs_attachment_item_markup_cb(); 

Usage

  1. if ( !function_exists( 'bp_docs_attachment_item_markup_cb' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress-docs/includes/attachments-ajax.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_docs_attachment_item_markup_cb(); 
  7.  

Defined (1)

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

/includes/attachments-ajax.php  
  1. function bp_docs_attachment_item_markup_cb() { 
  2. $attachment_id = isset( $_POST['attachment_id'] ) ? intval( $_POST['attachment_id'] ) : 0; 
  3. $markup = bp_docs_attachment_item_markup( $attachment_id ); 
  4. wp_send_json_success( $markup );