You keep marking my post as “Solved”, I didn’t even read your reply yet, I didn’t even test your suggestion yet. That is why I keep on making another post. If that’s the case, please don’t mark it as solve yet. There is a thing “Status” at the right sidebar of WordPress and I can change it to “Solved” anytime as soon as it really solves the issue.
Anyway, one of your support said;
The issue happened because you need to add rewrite rules for pagination on your endpoint.
Wishlist query using wl_paged
variable for the number of the page to adjust wishlist products query.
Then, I expected this to work but it doesn’t and yet you mark my previous post as “solved”;
function add_wc_endpoint_rewrite() {
add_rewrite_rule('wl_paged/([^/]+)/?$', 'index.php?wl_paged=$matches[1]', 'top');
}
add_action( 'init', 'add_wc_endpoint_rewrite' );
function wc_endpoint_query_vars( $vars ) {
$vars[] = 'wl_paged';
return $vars;
}
add_filter( 'query_vars', 'd_wallet_query_vars', 0 );