Skip to content

Commit

Permalink
re-added setter
Browse files Browse the repository at this point in the history
pfefferle committed Jan 15, 2025
1 parent 2077a01 commit 96d1146
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/transformer/class-base.php
Original file line number Diff line number Diff line change
@@ -83,13 +83,15 @@ protected function transform_object_properties( $activity_object ) {
$value = \call_user_func( array( $this, $getter ) );

if ( isset( $value ) ) {
$setter = 'set_' . $var;

/**
* Filter the value before it is set to the Activity-Object `$activity_object`.
*
* @param mixed $value The value that should be set.
* @param mixed $item The Object.
*/
$value = \apply_filters( "activitypub_transform_set_{$var}", $value, $this->item );
$value = \apply_filters( "activitypub_transform_{$setter}", $value, $this->item );

/**
* Filter the value before it is set to the Activity-Object `$activity_object`.

0 comments on commit 96d1146

Please sign in to comment.