bp_get_document_load_more_link()

Get the URL for the Load More link.

Description

Return

(string) $link

Source

File: bp-document/bp-document-template.php

281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
function bp_get_document_load_more_link() {
    global $document_template;
 
    $url  = bp_get_requested_url();
    $link = add_query_arg( $document_template->pag_arg, $document_template->pag_page + 1, $url );
 
    /**
     * Filters the Load More link URL.
     *
     * @since BuddyPress 2.1.0
     *
     * @param string $link                The "Load More" link URL with appropriate query args.
     * @param string $url                 The original URL.
     * @param object $document_template The document template loop global.
     */
    return apply_filters( 'bp_get_document_load_more_link', $link, $url, $document_template );
}

Changelog

Changelog
Version Description
BuddyPress 2.1.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.