-
Notifications
You must be signed in to change notification settings - Fork 81
activitypub_validate_object
github-actions[bot] edited this page Aug 1, 2025
·
4 revisions
Filter the ActivityPub object validation.
/**
* Filter the ActivityPub object validation.
*
* @param bool $validate
* @param array $param
* @param object $request
* @param string $key
* @return bool The filtered value.
*/
function my_activitypub_validate_object_callback( bool $validate, array $param, object $request, string $key ) {
// Your code here.
return $validate;
}
add_filter( 'activitypub_validate_object', 'my_activitypub_validate_object_callback', 10, 4 );
-
bool
$validate
The validation result. -
array
$param
The object data. -
object
$request
The request object. -
string
$key
The key.
\apply_filters( 'activitypub_validate_object', true, $param, $request, $key )
\apply_filters( 'activitypub_validate_object', true, $param, $request, $key )
Follow @[email protected] for updates and news.