bp_docs_delete_doc_button

Echo the Delete/Untrash link for use on single Doc pages.

Description

bp_docs_delete_doc_button( (bool) $doc_id = false ); 

Parameters (1)

0. $doc_id — Optional. (bool) => false
Default: current Doc.

Usage

  1. if ( !function_exists( 'bp_docs_delete_doc_button' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress-docs/includes/templatetags.php'; 
  3.  
  4. // Optional. Default: current Doc. 
  5. $doc_id = false; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_docs_delete_doc_button($doc_id); 
  9.  

Defined (1)

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

/includes/templatetags.php  
  1. function bp_docs_delete_doc_button( $doc_id = false ) { 
  2. echo bp_docs_get_delete_doc_button( $doc_id );