bp_docs_doc_trash_notice

Add "Trash" notice next to deleted Docs.

Description

bp_docs_doc_trash_notice(); 

Usage

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

Defined (1)

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

/includes/templatetags.php  
  1. function bp_docs_doc_trash_notice() { 
  2. if ( get_post_status( get_the_ID() ) == 'trash' ) { 
  3. echo ' <span title="' . __( 'This Doc is in the Trash', 'bp-docs' ) . '" class="bp-docs-trashed-doc-notice">' . __( 'Trash', 'bp-docs' ) . '</span>';