-
Notifications
You must be signed in to change notification settings - Fork 80
activitypub_transform_set
github-actions[bot] edited this page Aug 18, 2025
·
10 revisions
Filter the value before it is set to the Activity-Object $activity_object
.
/**
* Filter the value before it is set to the Activity-Object `$activity_object`.
*
* @param Activitypub\mixed $value
* @param string $var
* @param Activitypub\mixed $item
* @return Activitypub\mixed The filtered value.
*/
function my_activitypub_transform_set_callback( Activitypub\mixed $value, string $var, Activitypub\mixed $item ) {
// Your code here.
return $value;
}
add_filter( 'activitypub_transform_set', 'my_activitypub_transform_set_callback', 10, 3 );
-
Activitypub\mixed
$value
The value that should be set. -
string
$var
The variable name. -
Activitypub\mixed
$item
The Object.
\apply_filters( 'activitypub_transform_set', $value, $var, $this->item )
Follow @[email protected] for updates and news.