bbp_get_author_link

  • apply_filters( 'bbp_get_author_link', $author_link, $args )

    Source Reference:

    • Component: bbPress :: bbp-user
      File: /bbp-includes/bbp-user-template.php :: Trac Source Line: 1089
      			} else {
      				$author_link = join( ' ', $author_links );
      			}
      
      		// No post so link is empty
      		} else {
      			$author_link = '';
      		}
      
      		return apply_filters( 'bbp_get_author_link', $author_link, $args );
      	}
      
      /** Capabilities **************************************************************/
      
      /**
       * Check if the user can access a specific forum
       *
       * @since bbPress (r3127)
       *
       * @uses bbp_get_current_user_id()
      

Hook: add_filter: bbp_get_author_link instances (1)

  • add_filter( 'bbp_get_author_link',          'bbp_suppress_private_author_link', 10, 2 )
    $tag: bbp_get_author_link
    $function_to_add: bbp_suppress_private_author_link
    $priority: 10
    $accepted_args: 2

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 359
      // Fix post author id for anonymous posts (set it back to 0) when the post status is changed
      add_filter( 'wp_insert_post_data', 'bbp_fix_post_author', 30, 2 );
      
      // Suppress private forum details
      add_filter( 'bbp_get_forum_topic_count',    'bbp_suppress_private_forum_meta',  10, 2 );
      add_filter( 'bbp_get_forum_reply_count',    'bbp_suppress_private_forum_meta',  10, 2 );
      add_filter( 'bbp_get_forum_post_count',     'bbp_suppress_private_forum_meta',  10, 2 );
      add_filter( 'bbp_get_forum_freshness_link', 'bbp_suppress_private_forum_meta',  10, 2 );
      add_filter( 'bbp_get_author_link',          'bbp_suppress_private_author_link', 10, 2 );
      add_filter( 'bbp_get_topic_author_link',    'bbp_suppress_private_author_link', 10, 2 );
      add_filter( 'bbp_get_reply_author_link',    'bbp_suppress_private_author_link', 10, 2 );
      
      /**
       * Add filters to anonymous post author data
       *
       * This is used to clean-up any anonymous user data that is submitted via the
       * new topic and new reply forms.
       *
       * @uses add_filter() To add filters
      

Comments are closed.