bbp_get_reply_edit_link

  • apply_filters( 'bbp_get_reply_edit_link', $link_before . '<a href="' . $uri . '">' . $edit_text . '</a>' . $link_after, $args )

    Source Reference:

    • Component: bbPress :: bbp-reply
      File: /bbp-includes/bbp-reply-template.php :: Trac Source Line: 1448
      			// User cannot edit or it is past the lock time
      			if ( empty( $reply ) || !current_user_can( 'edit_reply', $reply->ID ) || bbp_past_edit_lock( $reply->post_date_gmt ) )
      				return;
      		}
      
      		// No uri to edit reply
      		if ( !$uri = bbp_get_reply_edit_url( $id ) )
      			return;
      
      		return apply_filters( 'bbp_get_reply_edit_link', $link_before . '<a href="' . $uri . '">' . $edit_text . '</a>' . $link_after, $args );
      	}
      
      /**
       * Output URL to the reply edit page
       *
       * @since bbPress (r2753)
       *
       * @param int $reply_id Optional. Reply id
       * @uses bbp_get_reply_edit_url() To get the reply edit url
       */
      

Comments are closed.