Skip to content

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.

Auto-generated Example

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
);

Parameters

  • int $in_reply_to_id The post ID that is being responded to.
  • string $status_text The status text.

Returns

int The post ID that is being responded to.

Files

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 )

Hooks

Clone this wiki locally