-
Notifications
You must be signed in to change notification settings - Fork 7
mastodon_api_submit_status_text
Alex Kirk edited this page Feb 8, 2025
·
5 revisions
Allow modifying the status text before it gets posted.
add_filter(
'mastodon_api_submit_status_text',
function (
string $status,
WP_REST_Request $request
) {
// Your code here
return $status;
},
10,
2
);
-
string
$status
The user submitted status text. -
WP_REST_Request
$request
The REST request object.
string
The potentially modified status text.
apply_filters( 'mastodon_api_submit_status_text', $status_text, $request )
apply_filters( 'mastodon_api_submit_status_text', $status_text, $request )