-
Notifications
You must be signed in to change notification settings - Fork 83
activitypub_validate_object
github-actions[bot] edited this page Oct 29, 2025
·
25 revisions
Filter the ActivityPub object validation.
/**
* Filter the ActivityPub object validation.
*
* @param bool $validate
* @param array $param
* @param WP_REST_Request $request
* @param string $key
* @return bool The filtered value.
*/
function my_activitypub_validate_object_callback( bool $validate, array $param, WP_REST_Request $request, string $key ) {
// Your code here.
return $validate;
}
add_filter( 'activitypub_validate_object', 'my_activitypub_validate_object_callback', 10, 4 );-
bool$validateThe validation result. -
array$paramThe object data. -
WP_REST_Request$requestThe request object. -
string$keyThe 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.