bp_docs_create_button

Echoes the Create A Doc button.

Description

bp_docs_create_button(); 

Usage

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

Defined (1)

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

/includes/templatetags.php  
  1. function bp_docs_create_button() { 
  2. if ( ! bp_docs_is_doc_create() && current_user_can( 'bp_docs_create' ) ) { 
  3. echo apply_filters( 'bp_docs_create_button', '<a class="button" id="bp-create-doc-button" href="' . bp_docs_get_create_link() . '">' . __( "Create New Doc", 'bp-docs' ) . '</a>' );