-
Notifications
You must be signed in to change notification settings - Fork 9
mastodon_api_in_reply_to_id
github-actions[bot] edited this page Jul 24, 2026
·
22 revisions
Allow modifying the in_reply_to_id before it gets used
For example, this could be a remapped blog id, or a remapped URL.
add_filter(
'mastodon_api_in_reply_to_id',
function (
string $in_reply_to_id,
WP_REST_Request $request
) {
// Your code here
return $in_reply_to_id;
},
10,
2
);-
string$in_reply_to_idThe user submitted in_reply_to_id. -
WP_REST_Request$requestThe REST request object.
string The potentially modified in_reply_to_id.
apply_filters( 'mastodon_api_in_reply_to_id', $numeric_id )apply_filters( 'mastodon_api_in_reply_to_id', $regular_id )apply_filters( 'mastodon_api_in_reply_to_id', $processed_status->id )apply_filters( 'mastodon_api_in_reply_to_id', $request->get_param( 'in_reply_to_id' ), $request )apply_filters( 'mastodon_api_in_reply_to_id', $request->get_param( 'in_reply_to_id' ), $request )