-
Notifications
You must be signed in to change notification settings - Fork 82
activitypub_is_activitypub_request
github-actions[bot] edited this page Aug 18, 2025
·
8 revisions
Filters whether the current request is an ActivityPub request.
/**
* Filters whether the current request is an ActivityPub request.
*
* @param bool $is_activitypub_request
* @return bool The filtered value.
*/
function my_activitypub_is_activitypub_request_callback( bool $is_activitypub_request ) {
// Your code here.
return $is_activitypub_request;
}
add_filter( 'activitypub_is_activitypub_request', 'my_activitypub_is_activitypub_request_callback' );
-
bool
$is_activitypub_request
True if the request is an ActivityPub request, false otherwise.
\apply_filters( 'activitypub_is_activitypub_request', $this->is_activitypub_request )
Follow @[email protected] for updates and news.