-
Notifications
You must be signed in to change notification settings - Fork 81
Hooks
github-actions[bot] edited this page Jul 30, 2025
·
4 revisions
-
activitypub_json_post
Fires after an ActivityPub object is generated and sent to the client. -
activitypub_json_pre
Fires before an ActivityPub object is generated and sent to the client.
-
activitypub_after_register_post_type
Fires after ActivityPub custom post types have been registered. -
activitypub_preview_template
Filter the template used for the ActivityPub preview.
-
activitypub_rest_users_pre
Action triggered prior to the ActivityPub profile being created and sent to the client.
-
activitypub_inbox_post
Fires after the ActivityPub inbox has been created and sent to the client. -
activitypub_rest_inbox_array
Filters the ActivityPub inbox data before it is sent to the client. -
activitypub_rest_inbox_pre
Fires before the ActivityPub inbox is created and sent to the client.
-
activitypub_pre_get_by_username
Filter the username before we do anything else.
-
activitypub_handled_announce
Fires after an Announce has been saved. -
activitypub_inbox
ActivityPub inbox action.
-
activitypub_attachment
Filter the attachment for a post. -
activitypub_extract_mentions
Filter the mentions in the post content. -
activitypub_get_image
Filter the image URL returned for each post. -
activitypub_get_image_post
Hook into the image retrieval process. After image retrieval. -
activitypub_get_image_pre
Hook into the image retrieval process. Before image retrieval. -
activitypub_image_src
Filter the image source URL. -
activitypub_locale
Filter the locale of the post. -
activitypub_transform_set
Filter the value before it is set to the Activity-Object$activity_object
.
-
activitypub_construct_model_actor
Fires when a model actor is constructed. -
activitypub_default_blog_username
Filters the default blog username.
-
activitypub_comment_attachment_ids
Filter the attachment IDs for a comment. -
activitypub_comment_attachments
Filter the attachments for a comment. -
activitypub_comment_reply_link
Filters the HTML markup for the ActivityPub remote comment reply container. -
activitypub_max_image_attachments
Filters the maximum number of media attachments allowed in a post. -
activitypub_the_content
Filters the post content after it was transformed for ActivityPub.
-
activitypub_handled_create
Fires after a Create activity has been handled. -
activitypub_inbox_update
Fires when a Create activity is received for an existing comment.
-
activitypub_additional_inboxes
Filters the list of inboxes to send the Activity to. -
activitypub_outbox_processing_batch_complete
Fires when the batch of followers is complete. -
activitypub_outbox_processing_complete
Fires when the followers are complete. -
activitypub_pre_send_to_inboxes
Fires before sending an Activity to inboxes. activitypub_send_activity
-
activitypub_send_activity_to_followers
Filters whether to send an Activity to followers. -
activitypub_sent_to_inbox
Fires after an Activity has been sent to an inbox.
-
activitypub_actor_extra_fields_limit
Filters the number of extra fields to retrieve for an ActivityPub actor. -
activitypub_extra_field_content
Filters the content of an extra field. -
activitypub_get_actor_extra_fields
Filters the extra fields for an ActivityPub actor.
-
activitypub_transformer
Filter the transformer for a given object.
-
activitypub_followers_post_follow
Fires after a new follower has been added.
-
activitypub_rest_followers_pre
Action triggered prior to the ActivityPub profile being created and sent to the client.
-
activitypub_followers_pre_remove_follower
Fires before a Follower is removed.
-
activitypub_rest_following_pre
Action triggered prior to the ActivityPub profile being created and sent to the client.
-
activitypub_activity_object_array
Filter the array of the ActivityPub object. -
activitypub_json_encode_options
Options to be passed to json_encode().
-
activitypub_register_handlers
Register additional handlers.
-
activitypub_pre_http_get
Fires before an HTTP GET request is made. -
activitypub_pre_http_get_remote_object
Filters the preemptive return value of a remote object request. -
activitypub_pre_http_is_tombstone
Fires before checking if the URL is a tombstone. -
activitypub_pre_http_post
Fires before an HTTP POST request is made. -
activitypub_remote_get_timeout
Filters the timeout duration for remote GET requests in ActivityPub. -
activitypub_safe_remote_get_response
Action to save the response of the remote GET request. -
activitypub_safe_remote_post_response
Action to save the response of the remote POST request.
-
activitypub_inbox_
ActivityPub inbox action for specific activity types. -
activitypub_rest_inbox_disallowed
ActivityPub inbox disallowed activity. -
activitypub_validate_object
Filter the ActivityPub object validation.
-
activitypub_interactions_follow_url
Filters the URL used for following an ActivityPub actor. -
activitypub_interactions_reply_url
Filters the URL used for replying to an ActivityPub object. -
activitypub_interactions_url
Filters the redirect URL.
-
activitypub_handled_like
Fires after a Like has been handled.
-
activitypub_link_rel
Filters the rel attribute for ActivityPub links.
-
activitypub_import_mastodon_post_data
Filter the post data before inserting it into the database.
-
activitypub_migrate
Fires when the system has to be migrated.
-
activitypub_rest_moderators
Filter the list of moderators.
-
activitypub_enable_primary_domain_moves
Filter to enable automatically moving Fediverse accounts when the domain changes.
-
activitypub_rest_nodeinfo_pre
Fires before the NodeInfo data is created and sent to the client.
-
activitypub_notification
Action to send ActivityPub notifications.
-
activitypub_rest_outbox_array
Filter the ActivityPub outbox array. -
activitypub_rest_outbox_item_error
Action triggered when an outbox item is not a WP_Post. -
activitypub_rest_outbox_post
Action triggered after the ActivityPub profile has been created and sent to the client. -
activitypub_rest_outbox_pre
Action triggered prior to the ActivityPub profile being created and sent to the client. -
activitypub_rest_outbox_query
Filters WP_Query arguments when querying Outbox items via the REST API. -
rest_activitypub_outbox_activity_types
Filters the list of activity types to include in the outbox.
-
activitypub_get_outbox_activity
Filters the Activity object before it is returned.
-
activitypub_attachment_ids
Filter the attachment IDs for a post. -
activitypub_attachments
Filter the attachments for a post. -
activitypub_before_get_content
Provides an action hook so plugins can add their own hooks/filters before AP content is generated. -
activitypub_object_content_template
Filters the template used to generate ActivityPub object content. -
filter_media_by_object_type
Filter the object type for media attachments.
-
activitypub_is_activitypub_request
Filters whether the current request is an ActivityPub request. -
activitypub_queried_object
Filters the queried object. -
activitypub_should_negotiate_content
Filters whether content negotiation should be forced.
-
activitypub_cleanup_remote_actors_number
Filter the number of remote Actors to clean up. -
activitypub_register_schedulers
Register additional schedulers. -
activitypub_update_remote_actors_number
Filter the number of remote Actors to update.
-
activitypub_screen_options
Filters Activitypub settings screen options.
-
activitypub_defer_signature_verification
Filter to defer signature verification.
-
activitypub_admin_settings_tabs
Filters the tabs displayed in the ActivityPub settings.
-
activitypub_surge_cache_config_file
Filter the config file path.
-
activitypub_handled_undo
Fires after an "Undo" activity has been handled.
-
activitypub_handled_update
Fires after an Update activity has been handled.
-
activitypub_rest_webfinger_pre
Action triggered prior to the ActivityPub profile being created and sent to the client.
-
activitypub_post_follow_form
Action to add custom content after the follow form.
-
activitypub_activity_object_types
Filters the activity object types. -
activitypub_activity_types
Filters the activity types. -
activitypub_actor_types
Filters the actor types. -
activitypub_add_to_outbox_failed
Action triggered when adding an object to the outbox fails. -
activitypub_content_visibility
Filters the visibility of a post. -
activitypub_esc_hashtag
Allow defining your own custom hashtag generation rules. -
activitypub_excerpt_more
Filters the excerpt more value. -
activitypub_get_upload_baseurl
Filters the upload base URL. -
activitypub_get_wp_object_state
Allow plugins to get the federation state of a WordPress object. -
activitypub_is_blog_public
Filter whether the blog is public. -
activitypub_is_post_disabled
Allow plugins to disable posts for ActivityPub. -
activitypub_is_user_type_disabled
Allow plugins to disable user types for ActivityPub. -
activitypub_json_context
Filters the ActivityPub JSON-LD context. -
activitypub_mark_wp_object_as_federated
Allow plugins to mark WordPress objects as federated. -
activitypub_post_type_description
Allow plugins to get the description of a post type. -
activitypub_registered_comment_type
Fires after a ActivityPub comment type is registered. -
activitypub_reply_intent_params
Filters the reply intent parameters. -
activitypub_reply_intent_url
Filters the reply intent URL. -
activitypub_site_supports_blocks
Allow plugins to disable block editor support, -
activitypub_use_authorized_fetch
Filters whether to use Authorized-Fetch. -
activitypub_user_can_activitypub
Allow plugins to enable/disable users for ActivityPub. -
post_activitypub_add_to_outbox
Action triggered after an object has been added to the outbox. -
pre_activitypub_get_upload_baseurl
Early filter to allow plugins to set the upload base URL. -
pre_get_remote_metadata_by_actor
Filters the metadata before it is retrieved from a remote actor.
-
activitypub_new_dm_email
Fires at the bottom of the new direct message emails.
-
activitypub_new_follower_email
Fires at the bottom of the new follower email.
-
activitypub_new_mention_email
Fires at the bottom of the new mention emails.
Follow @[email protected] for updates and news.