bbp_get_reply_permalink

  • apply_filters( 'bbp_get_reply_permalink', get_permalink( $reply_id ), $reply_id )

    Source Reference:

    • Component: bbPress :: bbp-reply
      File: /bbp-includes/bbp-reply-template.php :: Trac Source Line: 337
      	 * @uses bbp_get_reply_id() To get the reply id
      	 * @uses get_permalink() To get the permalink of the reply
      	 * @uses apply_filters() Calls 'bbp_get_reply_permalink' with the link
      	 *                        and reply id
      	 * @return string Permanent link to reply
      	 */
      	function bbp_get_reply_permalink( $reply_id = 0 ) {
      		$reply_id = bbp_get_reply_id( $reply_id );
      
      		return apply_filters( 'bbp_get_reply_permalink', get_permalink( $reply_id ), $reply_id );
      	}
      /**
       * Output the paginated url to the reply in the reply loop
       *
       * @since bbPress (r2679)
       *
       * @param int $reply_id Optional. Reply id
       * @uses bbp_get_reply_url() To get the reply url
       */
      function bbp_reply_url( $reply_id = 0 ) {
      

Hook: add_filter: bbp_get_reply_permalink instances (1)

  • add_filter( 'bbp_get_reply_permalink', 'bbp_add_view_all' )
    $tag: bbp_get_reply_permalink
    $function_to_add: bbp_add_view_all
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 281
       * bbPress comes with a number of custom RSS2 feeds that get handled outside
       * the normal scope of feeds that WordPress would normally serve. To do this,
       * we filter every page request, listen for a feed request, and trap it.
       */
      add_filter( 'request', 'bbp_request_feed_trap' );
      
      // Links
      add_filter( 'paginate_links',          'bbp_add_view_all' );
      add_filter( 'bbp_get_topic_permalink', 'bbp_add_view_all' );
      add_filter( 'bbp_get_reply_permalink', 'bbp_add_view_all' );
      add_filter( 'bbp_get_forum_permalink', 'bbp_add_view_all' );
      
      // wp_filter_kses on new/edit topic/reply title
      add_filter( 'bbp_new_reply_pre_title',  'wp_filter_kses' );
      add_filter( 'bbp_new_topic_pre_title',  'wp_filter_kses' );
      add_filter( 'bbp_edit_reply_pre_title', 'wp_filter_kses' );
      add_filter( 'bbp_edit_topic_pre_title', 'wp_filter_kses' );
      
      // balanceTags, wp_filter_kses and wp_rel_nofollow on new/edit topic/reply text
      add_filter( 'bbp_new_reply_pre_content',  'balanceTags'     );
      

Comments are closed.