AnsPress_Rewrite::bp_com_paged( array $args )
Description #
BuddyPress pagination fix.
Parameters #
- $argsarray (Required) Arguments.
Source #
File: includes/rewrite.php
public static function bp_com_paged( $args ) { if ( function_exists( 'bp_current_component' ) ) { $bp_com = bp_current_component(); if ( 'questions' === $bp_com || 'answers' === $bp_com ) { return preg_replace( '/page.([0-9]+)./', '?paged=$1', $args ); } } return $args; }
Expand full source code Collapse full source code View on GitHub: includes/rewrite.php:180
Add your comment