bp_get_activity_load_more_link()

Get the URL for the Load More link.


Description Description


Return Return

(string) $link


Top ↑

Source Source

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

	function bp_get_activity_load_more_link() {
		global $activities_template;

		$url  = bp_get_requested_url();
		$link = add_query_arg( $activities_template->pag_arg, $activities_template->pag_page + 1, $url );

		/**
		 * Filters the Load More link URL.
		 *
		 * @since 2.1.0
		 *
		 * @param string $link                The "Load More" link URL with appropriate query args.
		 * @param string $url                 The original URL.
		 * @param object $activities_template The activity template loop global.
		 */
		return apply_filters( 'bp_get_activity_load_more_link', $link, $url, $activities_template );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.