Sep 22, 2021 10:27 am
hello
I know these codes to open the profile in the same tab when I click on the username and member picture.
add_filter("wpdiscuz_author_link_attributes", function ($attrs) {
$attrs["target"] = "";
return $attrs;
});
add_filter('wpdiscuz_avatar_link_attributes', function ($attr) {
if (isset($attr['target'])) {
$attr['target'] = '';
}
return $attr;
});
it used to work. not working now. why?
thank you
6 Replies
Sep 22, 2021 10:36 am
We've just checked the code it works fine. Please make sure the codes exists on the active theme functions.php file, then delete all kind of caches and check again.
wpDiscuz also has a built-in caches system Please delete this cache as well. It's located in the Dashboard > wpDiscuz > Settings > General Settings tab.