wpDiscuz - WordPress Comment Plugin
Share:
Notifications
Clear all

[Solved] open in the same tab


cihan
Posts: 23
Topic starter
(@cihan)
Eminent Member
Joined: 7 months ago

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
Asti
Posts: 3943
 Asti
Support
(@asti)
Support member
Joined: 4 years ago

@cihan,

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. 

image
5 Replies
cihan
(@cihan)
Joined: 7 months ago

Eminent Member
Posts: 23

@asti  yes thank you 🙂

Asti
 Asti
Support
(@asti)
Joined: 4 years ago

Support member
Posts: 3943

@cihan,

Please confirm that the issue is solved.  

cihan
(@cihan)
Joined: 7 months ago

Eminent Member
Posts: 23

@asti 

yes 🙂  but how?

Asti
 Asti
Support
(@asti)
Joined: 4 years ago

Support member
Posts: 3943

ok, thank you, we'll mark this topic as solved and close it.

cihan
(@cihan)
Joined: 7 months ago

Eminent Member
Posts: 23

@asti  yes thank you

Share: