-
Notifications
You must be signed in to change notification settings - Fork 7
mastodon_api_comment_parent_post_id
Alex Kirk edited this page Jun 5, 2024
·
1 revision
Get the post id that is being responded to.
add_filter(
'mastodon_api_comment_parent_post_id',
function (
int $in_reply_to_id,
string $status_text
) {
// Your code here
return $in_reply_to_id;
},
10,
2
);
-
int
$in_reply_to_id
The post ID that is being responded to. -
string
$status_text
The status text.
int
The post ID that is being responded to.
apply_filters( 'mastodon_api_comment_parent_post_id', $in_reply_to_id, $status_text )
apply_filters( 'mastodon_api_comment_parent_post_id', $in_reply_to_id, $status_text )