Skip to content

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.

Auto-generated Example

/**
 * 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 );

Parameters

  • Activitypub\mixed $value The value that should be set.
  • string $var The variable name.
  • Activitypub\mixed $item The Object.

Files

\apply_filters( 'activitypub_transform_set', $value, $var, $this->item )

← All Hooks

Users

Developers

Clone this wiki locally