开发者

BuddyPress: Stop overriding default parameters passed to the template loop?

How do I stop BP from overriding default parameters passed to the template loop?

For example, on the Activity page, let's say you want BP to "forget" the user's last viewed parameter (like "My Forums" or "@user 开发者_如何学运维Mentions") and go right back to All Members or My Friends every time you reload the page.

I tried deleting the contents of ajax.php and global.js, and the overriding behavior still happens. Where do I look next?


The function that handles this is bp_init_activity(). If you comment the call to this function out (around line 15 of global.js), it should stop the cookie from overriding your default settings.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜