-
|
I love WordPress-ActivityPub, but it does add extra requests (and thus increasing total download size) to my otherwise lean setup. This seems mainly due to "remote reply" feature. How could I disable that feature (well knowing that means those comments would not get onto the fediverse)? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
this seems a difficult question ;-) from what I found in the sourcecode, the looking into removing actions now, but that seems ... not ideal? 😎 |
Beta Was this translation helpful? Give feedback.
-
|
Thx Matthias, I indeed ended up doing; add_action( 'template_redirect', function() {
remove_filter(
'comment_reply_link',
array( \Activitypub\Comment::class, 'comment_reply_link' ),
10
);
});Works like a charm! |
Beta Was this translation helpful? Give feedback.
This is the filter you could use to change the output:
activitypub_comment_reply_linkOr, if you want to remove it completely you can simply unhook
\add_filter( 'comment_reply_link', array( '\Activitypub\Comment', 'comment_reply_link' ), 10, 3 );