type = $type; $this->actor = $actor; $this->object = $activity; $this->target = $target; } /** * Send the notification. */ public function send() { $type = \strtolower( $this->type ); /** * Action to send ActivityPub notifications. * * @deprecated 7.5.0 Use "activitypub_handled_{$type}" instead. * * @param Notification $instance The notification object. */ \do_action_deprecated( 'activitypub_notification', array( $this ), '7.5.0', "activitypub_handled_{$type}" ); /** * Type-specific action to send ActivityPub notifications. * * @deprecated 7.5.0 Use "activitypub_handled_{$type}" instead. * * @param Notification $instance The notification object. */ \do_action_deprecated( "activitypub_notification_{$type}", array( $this ), '7.5.0', "activitypub_handled_{$type}" ); } }