bbp_author_url

Output the author url of a topic or reply.

Description

bbp_author_url( (int) $post_id = 0 ); 

Convenience function to ensure proper template functions are called and correct filters are executed. Used primarily to display topic and reply author information in the anonymous user form template-part.

Parameters (1)

0. $post_id — Optional. (int)
The post id.

Usage

  1. if ( !function_exists( 'bbp_author_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/users/template.php'; 
  3.  
  4. // The post id. 
  5. $post_id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_author_url($post_id); 
  9.  

Defined (1)

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

/includes/users/template.php  
  1. function bbp_author_url( $post_id = 0 ) { 
  2. echo bbp_get_author_url( $post_id );