bp_get_activity_load_more_link

Get the URL for the Load More link.

Description

(string) bp_get_activity_load_more_link(); 

Returns (string)

$link


Usage

  1. if ( !function_exists( 'bp_get_activity_load_more_link' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-activity/bp-activity-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_get_activity_load_more_link(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-activity/bp-activity-template.php  
  1. function bp_get_activity_load_more_link() { 
  2. global $activities_template; 
  3.  
  4. $link = add_query_arg( $activities_template->pag_arg, $activities_template->pag_page + 1, $url ); 
  5.  
  6. /** 
  7. * Filters the Load More link URL. 
  8. * @since 2.1.0 
  9. * @param string $link The "Load More" link URL with appropriate query args. 
  10. * @param string $url The original URL. 
  11. * @param object $activities_template The activity template loop global. 
  12. */ 
  13. return apply_filters( 'bp_get_activity_load_more_link', $link, $url, $activities_template );