ActivityPub 9.4.4 has 92 actions and 164 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when ActivityPub fires an action
add_action( 'activitypub_handled_accept', function( $accept, $arg2, $success, $result ) {
// Your code runs here.
}, 10, 4 );
// Change a value ActivityPub is about to use
add_filter( 'activitypub_remote_media_url', function( $url, $arg2, $arg3, $arg4 ) {
// Change $url here.
return $url;
}, 10, 4 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
Changes by version
9.4.3 → 9.4.4 · Nov 19, 2026 · 0 added, 0 removed
No hooks were added or removed in this release.
All hooks
-
/** * Filters a remote media URL for caching. */ apply_filters( 'activitypub_remote_media_url', $url, 'emoji', null, array( 'updated' => $attrs['updated'] ?? null ) ); -
/** * Filter the mentions in the post content. */ apply_filters( 'activitypub_extract_mentions', array(), $this->item->get_content() . ' ' . $this->item->get_summary(), $this->item ); -
/** * Filter the image URL returned for each post. */ apply_filters( 'activitypub_get_image', $this->get_attachment_image_src( $id, $image_size ), $id, $image_size ); -
/** * Fires after an ActivityPub Accept activity has been handled. */ do_action( 'activitypub_handled_accept', $accept, (array) $user_ids, $success, $result ); -
/** * This action is documented in includes/handler/class-delete.php */ do_action( 'activitypub_handled_delete', $activity, (array) $user_ids, true, $post ); -
/** * Fires after an Announce has been received. */ do_action( 'activitypub_inbox', $object, (array) $user_ids, $type, $activity ); -
/** * Fires after an Announce of a specific type has been received. */ do_action( "activitypub_inbox_{$type}", $object, (array) $user_ids, $activity ); -
/** * ActivityPub inbox disallowed activity. */ do_action( 'activitypub_rest_inbox_disallowed', $data, $user_id, $type, $activity ); -
/** * Filters the stats image URL. */ apply_filters( 'activitypub_stats_image_url', $url, $user_id, $year ); -
/** * Fires when the blocklist import ends. */ do_action( 'import_end' ); -
/** * Fires when the blocklist import starts. */ do_action( 'import_start' ); -
/** * Filter the array of the ActivityPub object by class. */ apply_filters( "activitypub_activity_{$class}_object_array", $array, $this->id, $this ); -
/** * Filter the array of the ActivityPub object. */ apply_filters( 'activitypub_activity_object_array', $array, $class, $this->id, $this ); -
/** * Fired when a domain or keyword is blocked site-wide. */ do_action( 'activitypub_add_site_block', $value, $type ); -
/** * Action triggered when adding an object to the outbox fails. */ do_action( 'activitypub_add_to_outbox_failed', $activity, $data, $activity_type, $user_id, $content_visibility ); -
/** * Fired when a domain or keyword is blocked. */ do_action( 'activitypub_add_user_block', $value, $type, $user_id ); -
/** * Filters whether a specific cache type is enabled. */ apply_filters( "activitypub_cache_{$type}_enabled", true ); -
/** * Fires when a model actor is constructed. */ do_action( 'activitypub_construct_model_actor', $this ); -
/** * Fires after any ActivityPub Inbox activity has been handled, regardless of * activity type. */ do_action( 'activitypub_handled_inbox', $data, $user_ids, $type, $activity, $inbox_item->ID, $context ); -
/** * Fires after an ActivityPub Inbox activity has been handled. */ do_action( "activitypub_handled_inbox_{$type}", $data, $user_ids, $activity, $inbox_item->ID, $context ); -
/** * Fires after an ActivityPub Reject activity has been handled. */ do_action( 'activitypub_handled_reject', $reject, (array) $user_ids, $success, $result ); -
/** * Fires after an ActivityPub Update activity has been handled. */ do_action( 'activitypub_handled_update', $activity, (array) $user_ids, $success, $result ); -
/** * Fires after an ActivityPub object is generated and sent to the client. */ do_action( 'activitypub_json_post', $object ); -
/** * Fires before an ActivityPub object is generated and sent to the client. */ do_action( 'activitypub_json_pre', $object ); -
/** * Filters the maximum number of media attachments allowed in a post. */ apply_filters( 'activitypub_max_image_attachments', $max_media ); -
/** * Fired when a domain or keyword is unblocked. */ do_action( 'activitypub_remove_user_block', $value, $type, $user_id ); -
/** * Action to save the response of the remote GET request. */ do_action( 'activitypub_safe_remote_get_response', $response, $url ); -
/** * Filter to skip inbox storage. */ apply_filters( 'activitypub_skip_inbox_storage', false, $data ); -
/** * Filter the content of the comment. */ apply_filters( 'activitypub_the_content', $content, $comment ); -
/** * Filter the ActivityPub object validation. */ apply_filters( 'activitypub_validate_object', true, $param, $request, $key ); -
/** * Filters the HTTP headers user agent string. */ apply_filters( 'http_headers_useragent', 'WordPress/' . get_masked_wp_version() . '; ' . \get_bloginfo( 'url' ), $url ); -
/** * Filters the columns displayed in the ActivityPub Following list table. */ apply_filters( "activitypub_{$key}_columns", $columns, $this->user_id ); -
/** * Filters the displayed value for a column in the ActivityPub Following list * table. */ apply_filters( "activitypub_{$this->actor_list_table_key()}_column_value", null, $column_name, $item, $this->user_id ); -
/** * Filters the sortable columns in the ActivityPub Following list table. */ apply_filters( "activitypub_{$this->actor_list_table_key()}_sortable_columns", $columns, $this->user_id ); -
/** * Filters the activity object types. */ apply_filters( 'activitypub_activity_object_types', Base_Object::TYPES ); -
/** * Filters the activity types. */ apply_filters( 'activitypub_activity_types', Activity::TYPES ); -
/** * Filters the minimum number of characters required before actors are * searched. */ apply_filters( 'activitypub_actor_autocomplete_min_length', 2 ); -
/** * Filters the maximum number of actors returned by the autocomplete endpoint. */ apply_filters( 'activitypub_actor_autocomplete_number', 10, $request ); -
/** * Filters the number of extra fields to retrieve for an ActivityPub actor. */ apply_filters( 'activitypub_actor_extra_fields_limit', 20 ); -
/** * Filters the actor types. */ apply_filters( 'activitypub_actor_types', Actor::TYPES ); -
/** * Filters the list of inboxes to send the Activity to. */ apply_filters( 'activitypub_additional_inboxes', array(), $actor_id, $activity ); -
/** * Filters the tabs displayed in the ActivityPub settings. */ apply_filters( 'activitypub_admin_settings_tabs', $settings_tabs ); -
/** * Fires after ActivityPub custom post types have been registered. */ do_action( 'activitypub_after_register_post_type' ); -
/** * Filters whether RFC 7591 dynamic client registration is allowed. */ apply_filters( 'activitypub_allow_dynamic_client_registration', true ); -
/** * Filters whether a non-public host may be used. */ apply_filters( 'activitypub_allow_non_public_host', false, $host ); -
/** * Filters the comment types that are federated. */ apply_filters( 'activitypub_allowed_comment_types', $allowed_types, $comment ); -
/** * Filters the allowed HTML for ActivityPub content. */ apply_filters( 'activitypub_allowed_html', self::get_allowed_html() ); -
/** * Filters the allowed directories for local file imports. */ apply_filters( 'activitypub_allowed_import_directories', $allowed_dirs, $file_path ); -
/** * Fires after annual statistics have been compiled for all users. */ do_action( 'activitypub_annual_stats_compiled', $year ); -
/** * Filters the ActivityPub app loader module dependencies. */ apply_filters( 'activitypub_app_boot_dependencies', $dependencies, $routes ); -
/** * Filters the ActivityPub app prerequisite script dependencies. */ apply_filters( 'activitypub_app_prerequisite_dependencies', \array_values( \array_unique( $dependencies ) ), $boot_asset ); -
/** * Filters the ActivityPub app route registry. */ apply_filters( 'activitypub_app_routes', $routes ); -
/** * Filter the attachment for a post. */ apply_filters( 'activitypub_attachment', $attachment, $id ); -
/** * Filter the attachment IDs for a post. */ apply_filters( 'activitypub_attachment_ids', $media, $this->item ); -
/** * Filter the attachments for a post. */ apply_filters( 'activitypub_attachments', $attachments, $this->item ); -
/** * Filters the media markup for ActivityPub attachments. */ apply_filters( 'activitypub_attachments_media_markup', '', $attachment_ids ); -
/** * Provides an action hook so plugins can add their own hooks/filters before AP * content is generated. */ do_action( 'activitypub_before_get_content', $post ); -
/** * Filters the array of row action links on the Blocked Actors list table. */ apply_filters( 'activitypub_blocked_actors_row_actions', $actions, $item ); -
/** * Fires when the cron-deferred encoder fails to produce a hash for an * attachment. Monitoring integrations can hook this to count blurhash-encode * failures over time. */ do_action( 'activitypub_blurhash_encode_failed', $attachment_id ); -
/** * Filters the allowed MIME types for a cache type. */ apply_filters( 'activitypub_cache_allowed_mime_types', static::DEFAULT_ALLOWED_MIME_TYPES, $type ); -
/** * Filters whether a URL passes safety validation. */ apply_filters( 'activitypub_cache_is_safe_url', null, $url ); -
/** * Filter the number of remote Actors to clean up. */ apply_filters( 'activitypub_cleanup_remote_actors_number', $number ); -
/** * Filter the client IP address used for rate limiting. */ apply_filters( 'activitypub_client_ip', $ip ); -
/** * Filter the ordered list of $_SERVER keys to consult as a source for the * client IP. The first key whose value parses as a valid IP wins. */ apply_filters( 'activitypub_client_ip_sources', array( 'REMOTE_ADDR' ) ); -
/** * Action triggered Collection Sync. */ do_action( 'activitypub_collection_sync', $collection_type, (array) $user_ids, $actor_url, $params ); -
/** * Filter the frequency of Collection-Synchronization headers sent to a given * authority. */ apply_filters( 'activitypub_collection_sync_frequency', WEEK_IN_SECONDS ); -
/** * Filters the collection types. */ apply_filters( 'activitypub_collection_types', array( 'Collection', 'OrderedCollection', 'CollectionPage', 'OrderedCollectionPage' ) ); -
/** * Filter the attachment IDs for a comment. */ apply_filters( 'activitypub_comment_attachment_ids', $media, $this->item ); -
/** * Filter the attachments for a comment. */ apply_filters( 'activitypub_comment_attachments', $attachments, $this->item ); -
/** * Filters the maximum number of image attachments displayed in a Fediverse * comment. */ apply_filters( 'activitypub_comment_image_limit', 3, $activity_object ); -
/** * Filters the HTML markup for the ActivityPub remote comment reply container. */ apply_filters( 'activitypub_comment_reply_link', $block ); -
/** * Filter the comment type attribute. */ apply_filters( "activitypub_comment_type_{$attr}", $value, $type ); -
/** * Filter the comment type. */ apply_filters( "activitypub_comment_type_{$type}", $type_array ); -
/** * Filters the visibility of a post. */ apply_filters( 'activitypub_content_visibility', $_visibility, $post ); -
/** * Filters the default blog username. */ apply_filters( 'activitypub_default_blog_username', $host ); -
/** * Filter to defer signature verification. */ apply_filters( 'activitypub_defer_signature_verification', false, $request, $force_signature ); -
/** * Filters the batch size for processing outbox items. */ apply_filters( 'activitypub_dispatcher_batch_size', ACTIVITYPUB_OUTBOX_PROCESSING_BATCH_SIZE ); -
/** * Filters the retry delay unit (in seconds). */ apply_filters( 'activitypub_dispatcher_retry_delay', HOUR_IN_SECONDS ); -
/** * Filters the error codes that qualify for a retry. */ apply_filters( 'activitypub_dispatcher_retry_error_codes', ACTIVITYPUB_RETRY_ERROR_CODES ); -
/** * Filters the maximum number of retry attempts. */ apply_filters( 'activitypub_dispatcher_retry_max_attempts', 3 ); -
/** * Filter the email template file path. */ apply_filters( 'activitypub_email_template', $template_file, $template, $user_id, $args ); -
/** * Filter to enable automatically moving Fediverse accounts when the domain * changes. */ apply_filters( 'activitypub_enable_primary_domain_moves', false ); -
/** * Allow defining your own custom hashtag generation rules. */ apply_filters( 'activitypub_esc_hashtag', $hashtag, $input ); -
/** * Filters the excerpt more value. */ apply_filters( 'activitypub_excerpt_more', '[…]' ); -
/** * Filters the comment types excluded from the comment count. */ apply_filters( 'activitypub_excluded_comment_types', $excluded_types, $post_id ); -
/** * Filters the content of an extra field. */ apply_filters( 'activitypub_extra_field_content', $content, $post ); -
/** * Filters the warning message shown to logged-in users without ActivityPub * capability. */ apply_filters( 'activitypub_federation_warning', $warning, $comment ); -
/** * Filters the media markup for ActivityPub file-based attachments. */ apply_filters( 'activitypub_files_media_markup', '', $files ); -
/** * Fires after a new follower has been added. */ do_action_deprecated( 'activitypub_followers_post_follow', array( $activity['actor'], $activity, $user_id, $remote_actor ), '7.5.0', 'activitypub_handled_follow' ); -
/** * Fires before a Follower is removed. */ do_action( 'activitypub_followers_pre_remove_follower', $post, $user_id, Remote_Actors::get_actor( $post ) ); -
/** * Filters the array of row action links for each follower in the Followers * list table. */ apply_filters( 'activitypub_followers_row_actions', $actions, $item ); -
/** * Action triggered after reconciliation is complete. */ do_action( 'activitypub_followers_sync_reconciled', $user_id, $actor_url ); -
/** * Filters the array of row action links on the Following list table. */ apply_filters( 'activitypub_following_row_actions', $actions, $item ); -
/** * Filters the extra fields for an ActivityPub actor. */ apply_filters( 'activitypub_get_actor_extra_fields', $fields, $user_id ); -
/** * Hook into the image retrieval process. After image retrieval. */ do_action( 'activitypub_get_image_post', $id, $image_size ); -
/** * Hook into the image retrieval process. Before image retrieval. */ do_action( 'activitypub_get_image_pre', $id, $image_size ); -
/** * Filters the Activity object before it is returned. */ apply_filters( 'activitypub_get_outbox_activity', $activity, $outbox_item ); -
/** * Filters the upload base URL. */ apply_filters( 'activitypub_get_upload_baseurl', $upload_dir['baseurl'] ); -
/** * Allow plugins to get the federation state of a WordPress object. */ apply_filters( 'activitypub_get_wp_object_state', false, $wp_object ); -
/** * Fires after an ActivityPub Announce activity has been handled. */ do_action( 'activitypub_handled_announce', $activity, (array) $user_ids, $success, $result ); -
/** * Fires after an ActivityPub Create activity has been handled. */ do_action( 'activitypub_handled_create', $activity, (array) $user_ids, $success, $result ); -
/** * Fires after an ActivityPub FeatureRequest activity has been answered. */ do_action( 'activitypub_handled_feature_request', $activity, (array) $user_ids, $state, $policy ); -
/** * Fires after a Follow activity has been handled. */ do_action( 'activitypub_handled_follow', $activity, (array) $user_ids, $success, $remote_actor ); -
/** * Fires after an ActivityPub Like activity has been handled. */ do_action( 'activitypub_handled_like', $like, (array) $user_ids, $success, $result ); -
/** * Fires after an ActivityPub Move activity has been handled. */ do_action( 'activitypub_handled_move', $activity, (array) $user_ids, $success, $result ); -
/** * Fires when an activity has been added to the outbox. */ do_action( "activitypub_handled_outbox_{\strtolower($type)}", $data, $user_id, $activity, $outbox_id ); -
/** * Fires after an ActivityPub QuoteRequest activity has been answered. */ do_action( 'activitypub_handled_quote_request', $activity, (array) $user_ids, $state, $content_policy ); -
/** * Fires after an ActivityPub Undo activity has been handled. */ do_action( 'activitypub_handled_undo', $activity, (array) $user_ids, $success, $result ); -
/** * Filters the list of post types to hide comments for. */ apply_filters( 'activitypub_hide_comments_for', $post_types ); -
/** * Filter the EXIF data for an image attachment. */ apply_filters( 'activitypub_image_exif', $exif_data, $image_meta, $attachment_id ); -
/** * Filter the image source URL. */ apply_filters( 'activitypub_image_src', $tags->get_attribute( 'src' ) ); -
/** * Filter the post data before inserting it into the database. */ apply_filters( 'activitypub_import_mastodon_post_data', $post_data, $post ); -
/** * Filters the URL used for following an ActivityPub actor. */ apply_filters( 'activitypub_interactions_follow_url', $redirect_url, $uri, $object, $intent ); -
/** * Filters the URL used for quoting an ActivityPub object. */ apply_filters( 'activitypub_interactions_quote_url', $redirect_url, $uri, $object, $intent ); -
/** * Filters the URL used for replying to an ActivityPub object. */ apply_filters( 'activitypub_interactions_reply_url', $redirect_url, $uri, $object, $intent ); -
/** * Filters the URL used for importing a Starter Kit collection. */ apply_filters( 'activitypub_interactions_starter_kit_url', $redirect_url, $uri, $object, $intent ); -
/** * Filters the redirect URL. */ apply_filters( 'activitypub_interactions_url', $redirect_url, $uri, $object, $intent ); -
/** * Filters whether the current request is an ActivityPub request. */ apply_filters( 'activitypub_is_activitypub_request', $this->is_activitypub_request ); -
/** * Filter whether the blog is public. */ apply_filters( 'activitypub_is_blog_public', \get_option( 'blog_public', 1 ) ); -
/** * Filters whether an import is running. */ apply_filters( 'activitypub_is_importing', $importing ); -
/** * Allow plugins to disable posts for ActivityPub. */ apply_filters( 'activitypub_is_post_disabled', $disabled, $post ); -
/** * Filter whether a post is publicly queryable via ActivityPub. */ apply_filters( 'activitypub_is_post_publicly_queryable', $queryable, $post ); -
/** * Allow plugins to disable user types for ActivityPub. */ apply_filters( 'activitypub_is_user_type_disabled', $disabled, $type ); -
/** * Filters the ActivityPub JSON-LD context. */ apply_filters( 'activitypub_json_context', $context ); -
/** * Options to be passed to json_encode(). */ apply_filters( 'activitypub_json_encode_options', $options ); -
/** * Filters the rel attribute for ActivityPub links. */ apply_filters( 'activitypub_link_rel', 'nofollow noopener noreferrer' ); -
/** * Filter the htaccess file path. */ apply_filters( 'activitypub_litespeed_cache_htaccess_file', $htaccess_file ); -
/** * Filter the locale of the post. */ apply_filters( 'activitypub_locale', $lang, $this->item ); -
/** * Allow plugins to mark WordPress objects as federated. */ do_action( 'activitypub_mark_wp_object_as_federated', $wp_object ); -
/** * Filters the maximum number of remote recipient URLs that can be fetched per * incoming activity. */ apply_filters( 'activitypub_max_remote_recipient_fetches', 10 ); -
/** * Fires after a remote media file has been successfully cached. */ do_action( 'activitypub_media_cached', $local_url, $url, $entity_id, static::get_type(), $file_path ); -
/** * Fires when the system has to be migrated. */ do_action( 'activitypub_migrate', $version_from_db, ACTIVITYPUB_PLUGIN_VERSION ); -
/** * Fires after monthly statistics have been collected for all users. */ do_action( 'activitypub_monthly_stats_collected', $year, $month ); -
/** * Fires when an actor move fails during domain change. */ do_action( 'activitypub_move_failed', $result, $actor_id ); -
/** * Fires at the bottom of the new direct message emails. */ do_action( 'activitypub_new_dm_email', $args ); -
/** * Fires at the bottom of the new follower email. */ do_action( 'activitypub_new_follower_email', $args ); -
/** * Fires at the bottom of the new mention emails. */ do_action( 'activitypub_new_mention_email', $args ); -
/** * Action to send ActivityPub notifications. */ do_action_deprecated( 'activitypub_notification', array( $this ), '7.5.0', "activitypub_handled_{$type}" ); -
/** * Type-specific action to send ActivityPub notifications. */ do_action_deprecated( "activitypub_notification_{$type}", array( $this ), '7.5.0', "activitypub_handled_{$type}" ); -
/** * Filter to override OAuth permission check. */ apply_filters( 'activitypub_oauth_check_permission', null, $request, $scope ); -
/** * Filter whether PKCE is required for public OAuth clients. */ apply_filters( 'activitypub_oauth_require_pkce', true, $client_id ); -
/** * Filters the template used to generate ActivityPub object content. */ apply_filters( 'activitypub_object_content_template', $template, $this->item, $type ); -
/** * Filters the activity to add to outbox. */ apply_filters( "activitypub_outbox_{$type}", $data, $user_id, $visibility ); -
/** * Filters the activity types included in the outbox collection. */ apply_filters( 'activitypub_outbox_activity_types', self::PUBLIC_ACTIVITY_TYPES ); -
/** * Fires after an outgoing Announce activity has been processed. */ do_action( 'activitypub_outbox_announce_sent', $object_url, $data, $user_id ); -
/** * Fires after an Arrive activity has created a local blog post. */ do_action( 'activitypub_outbox_arrive_sent', $post->ID, $location, $data, $user_id ); -
/** * Fires after a post has been created from an outgoing Create activity. */ do_action( 'activitypub_outbox_created_post', $post->ID, $activity, $user_id, $visibility ); -
/** * Fires after content has been deleted via an outgoing Delete activity. */ do_action( 'activitypub_outbox_handled_delete', $result, $data, $user_id ); -
/** * Fires after an outgoing Like activity has been processed. */ do_action( 'activitypub_outbox_like_sent', $object_url, $data, $user_id ); -
/** * Fires when the batch of followers is complete. */ do_action( 'activitypub_outbox_processing_batch_complete', $inboxes, $json, $outbox_item->post_author, $outbox_item_id, $batch_size, $offset ); -
/** * Fires when the followers are complete. */ do_action( 'activitypub_outbox_processing_complete', $inboxes, $json, $outbox_item->post_author, $outbox_item_id, $batch_size, $offset ); -
/** * Fires after a post has been updated from an outgoing Update activity. */ do_action( 'activitypub_outbox_updated_post', $post->ID, $activity, $user_id ); -
/** * Action to add custom content after the follow form. */ do_action( 'activitypub_post_follow_form' ); -
/** * Filter the location Place object for a post. */ apply_filters( 'activitypub_post_location', $place, $this->item, $post_id ); -
/** * Filters the ActivityPub object type for a post. */ apply_filters( 'activitypub_post_object_type', $object_type, $this->item ); -
/** * Allow plugins to get the description of a post type. */ apply_filters( 'activitypub_post_type_description', $description, $post_type->name, $post_type ); -
/** * Filters the download result before fetching a URL. */ apply_filters( 'activitypub_pre_download_url', null, $url, $type ); -
/** * Filter the actor before resolving by ID. */ apply_filters( 'activitypub_pre_get_by_id', null, $user_id ); -
/** * Filter the username before we do anything else. */ apply_filters( 'activitypub_pre_get_by_username', null, $username ); -
/** * Fires before an HTTP GET request is made. */ do_action( 'activitypub_pre_http_get', $url ); -
/** * Filters the remote object before the proxy resolves it. */ apply_filters( 'activitypub_pre_http_get_remote_object', null, $id ); -
/** * Fires before checking if the URL is a tombstone. */ do_action( 'activitypub_pre_http_is_tombstone', $url ); -
/** * Fires before an HTTP POST request is made. */ do_action( 'activitypub_pre_http_post', $url, $body, $user_id ); -
/** * Filters the result of emoji import before processing. */ apply_filters( 'activitypub_pre_import_emoji', null, $emoji_url, $updated ); -
/** * Filters the resolved addresses for a hostname before validation. */ apply_filters( 'activitypub_pre_resolve_public_host', null, $host ); -
/** * Fires before sending an Activity to inboxes. */ do_action( 'activitypub_pre_send_to_inboxes', $json, $inboxes, $outbox_item_id ); -
/** * Filters the preferred language codes for language map resolution. */ apply_filters( 'activitypub_preferred_languages', $languages, $site_lang ); -
/** * Filter whether to preserve a specific ap_post from being purged. */ apply_filters( 'activitypub_preserve_ap_post', false, $post_id ); -
/** * Filter the template used for the ActivityPub preview. */ apply_filters( 'activitypub_preview_template', ACTIVITYPUB_PLUGIN_DIR . '/templates/post-preview.php' ); -
/** * Filters how long a fetched object stays in the cache. */ apply_filters( 'activitypub_proxy_cache_ttl', (int) $args['ttl'], $url, $object ); -
/** * Filters the queried object. */ apply_filters( 'activitypub_queried_object', $queried_object ); -
/** * Fires after a quote comment has been deleted and Reject activity sent. */ do_action( 'activitypub_quote_comment_deleted', $comment_id, $post_id, $instrument_url, $activity_object ); -
/** * Filters the quote intent parameters. */ apply_filters( 'activitypub_quote_intent_params', array() ); -
/** * Filters the quote intent URL. */ apply_filters( 'activitypub_quote_intent_url', $url ); -
/** * Filters how many requests a caller may make per minute. */ apply_filters( 'activitypub_rate_limit', $limit, $bucket ); -
/** * Fires after all built-in cache handlers are registered. */ do_action( 'activitypub_register_caches' ); -
/** * Register additional handlers. */ do_action( 'activitypub_register_handlers' ); -
/** * Register additional outbox handlers. */ do_action( 'activitypub_register_outbox_handlers' ); -
/** * Register additional schedulers. */ do_action( 'activitypub_register_schedulers' ); -
/** * Fires after a ActivityPub comment type is registered. */ do_action( 'activitypub_registered_comment_type', $comment_type, $args ); -
/** * Filters whether remote media caching is enabled. */ apply_filters( 'activitypub_remote_cache_enabled', true ); -
/** * Filters the timeout duration for remote GET requests in ActivityPub. */ apply_filters( 'activitypub_remote_get_timeout', 10 ); -
/** * Filters the timeout duration for remote POST requests in ActivityPub. */ apply_filters( 'activitypub_remote_post_timeout', 10 ); -
/** * Fires when an incoming activity hits the remote recipient fetch cap. */ do_action( 'activitypub_remote_recipient_fetch_cap_reached', $activity, $recipient, $max_remote_fetches ); -
/** * Fired when a domain or keyword is unblocked site-wide. */ do_action( 'activitypub_remove_site_block', $value, $type ); -
/** * Filters the reply intent parameters. */ apply_filters( 'activitypub_reply_intent_params', array() ); -
/** * Filters the reply intent URL. */ apply_filters( 'activitypub_reply_intent_url', $url ); -
/** * Filters the query arguments carried into a collection's id and page links. */ apply_filters( 'activitypub_rest_collection_query_args', $allowed, $request ); -
/** * Action triggered prior to the ActivityPub profile being created and sent to * the client. */ do_action( 'activitypub_rest_followers_pre' ); -
/** * Action triggered prior to the ActivityPub profile being created and sent to * the client. */ do_action( 'activitypub_rest_following_pre' ); -
/** * Filter the ActivityPub inbox array. */ apply_filters( 'activitypub_rest_inbox_array', $response, $request ); -
/** * Action triggered after the ActivityPub inbox has been created and sent to * the client. */ do_action( 'activitypub_rest_inbox_post', $request ); -
/** * Action triggered prior to the ActivityPub inbox being created and sent to * the client. */ do_action( 'activitypub_rest_inbox_pre', $request ); -
/** * Filters WP_Query arguments when querying Inbox items via the REST API. */ apply_filters( 'activitypub_rest_inbox_query', $args, $request ); -
/** * Filter the list of moderators. */ apply_filters( 'activitypub_rest_moderators', $actors ); -
/** * Fires before the NodeInfo data is created and sent to the client. */ do_action( 'activitypub_rest_nodeinfo_pre', $version ); -
/** * Filter the ActivityPub outbox array. */ apply_filters( 'activitypub_rest_outbox_array', $response, $request ); -
/** * Action triggered when an outbox item is not a WP_Post. */ do_action( 'activitypub_rest_outbox_item_error', $outbox_item, $args, $query_result, $request ); -
/** * Action triggered after the ActivityPub profile has been created and sent to * the client. */ do_action( 'activitypub_rest_outbox_post', $request ); -
/** * Action triggered prior to the ActivityPub profile being created and sent to * the client. */ do_action( 'activitypub_rest_outbox_pre', $request ); -
/** * Filters WP_Query arguments when querying Outbox items via the REST API. */ apply_filters( 'activitypub_rest_outbox_query', $args, $request ); -
/** * Action triggered prior to the ActivityPub profile being created and sent to * the client. */ do_action( 'activitypub_rest_users_pre' ); -
/** * Action triggered prior to the ActivityPub profile being created and sent to * the client. */ do_action( 'activitypub_rest_webfinger_pre' ); -
/** * Action to save the response of the remote POST request. */ do_action( 'activitypub_safe_remote_post_response', $response, $url, $body, $user_id ); -
/** * Filters the pause between async batches (in seconds). */ apply_filters( 'activitypub_scheduler_async_batch_pause', 30, $hook ); -
/** * Filters Activitypub settings screen options. */ apply_filters( 'activitypub_screen_options', $screen_options ); -
/** * Filters whether to send an Activity to followers. */ apply_filters( 'activitypub_send_activity_to_followers', $send, $activity, $outbox_item->post_author, $outbox_item ); -
/** * Fires after an Activity has been sent to an inbox. */ do_action( 'activitypub_sent_to_inbox', $result, $inbox, $json, $outbox_item->post_author, $outbox_item_id ); -
/** * Filters whether a URL should be cached. */ apply_filters( 'activitypub_should_cache_url', true, $url, $type ); -
/** * Filters whether content negotiation should be forced. */ apply_filters( 'activitypub_should_negotiate_content', $return ); -
/** * Filters whether sideloading is enabled. */ apply_filters_deprecated( 'activitypub_sideloading_enabled', array( true ), '8.0.0', 'activitypub_remote_cache_enabled' ); -
/** * Filters the hosts a signature may legitimately have been made out to. */ apply_filters( 'activitypub_signature_original_hosts', array( home_host() ) ); -
/** * Allow plugins to disable block editor support, thus disabling blocks * registered by the ActivityPub plugin. */ apply_filters( 'activitypub_site_supports_blocks', true ); -
/** * Filter the comment types tracked in statistics. */ apply_filters( 'activitypub_stats_comment_types', $result ); -
/** * Fires at the bottom of the stats report email. */ do_action( 'activitypub_stats_report_email', $args ); -
/** * Filters the taxonomies whose terms are federated. */ apply_filters( 'activitypub_supported_taxonomies', array( 'category', 'post_tag' ) ); -
/** * Filter the config file path. */ apply_filters( 'activitypub_surge_cache_config_file', $config_file ); -
/** * Filters the tags.pub base URL for tag timeline lookups. */ apply_filters( 'activitypub_tags_pub_base_url', 'https://tags.pub' ); -
/** * Fires when `bury()` fails to write a tombstone row. */ do_action( 'activitypub_tombstone_bury_failed', $normalized, $post_id ); -
/** * Filters the retention window for local tombstones, in days. */ apply_filters( 'activitypub_tombstone_retention_days', 90 ); -
/** * Filter the value before it is set to the Activity-Object `$activity_object`. */ apply_filters( "activitypub_transform_{$setter}", $value, $this->item ); -
/** * Filter the value before it is set to the Activity-Object `$activity_object`. */ apply_filters( 'activitypub_transform_set', $value, $var, $this->item ); -
/** * Filter the transformer for a given object. */ apply_filters( 'activitypub_transformer', null, $data, $class ); -
/** * Filter the number of remote Actors to update. */ apply_filters( 'activitypub_update_remote_actors_number', $number ); -
/** * Filters whether to use Authorized-Fetch. */ apply_filters( 'activitypub_use_authorized_fetch', $use ); -
/** * Filters whether the current user is allowed to act as the blog actor. */ apply_filters( 'activitypub_user_can_act_as_blog', \current_user_can( 'manage_options' ) ); -
/** * Allow plugins to enable/disable users for ActivityPub. */ apply_filters( 'activitypub_user_can_activitypub', $enabled, $user_id ); -
/** * Filters whether a remote emoji URL is valid. */ apply_filters( 'activitypub_validate_emoji_src', $allow_remote, $value ); -
/** * Fires when post meta is added. */ do_action( 'added_post_meta', ...$meta ); -
/** * Filter the content of the comment. */ apply_filters( 'comment_text', $content, $comment, array() ); -
/** * Filter the object type for media attachments. */ apply_filters( 'filter_media_by_object_type', \strtolower( $type ), $item ); -
/** * Filter allowed comment types for avatars. */ apply_filters( 'get_avatar_comment_types', array( 'comment' ) ); -
/** * This filter is documented in wp-includes/link-template.php */ apply_filters( 'get_avatar_url', $avatar, $id_or_email, $args ); -
/** * Filter the NodeInfo data. */ apply_filters( 'nodeinfo_data', $nodeinfo, $version ); -
/** * This filter is documented in wp-includes/class-wp-oembed.php */ apply_filters( 'oembed_result', $data->html, $url, $args ); -
/** * Action triggered after an object has been added to the outbox. */ do_action( 'post_activitypub_add_to_outbox', $outbox_activity_id, $activity, $user_id, $content_visibility ); -
/** * Early filter to allow plugins to set the upload base URL. */ apply_filters( 'pre_activitypub_get_upload_baseurl', false ); -
/** * Filters the metadata before it is retrieved from a remote actor. */ apply_filters( 'pre_get_remote_metadata_by_actor', false, $actor ); -
/** * This filter is documented in wp-includes/class-wp-oembed-controller.php */ apply_filters( 'rest_oembed_ttl', DAY_IN_SECONDS, $url, $args ); -
/** * This filter is documented in wp-includes/post-template.php */ apply_filters( 'the_content', $content ); -
/** * This filter is documented in wp-includes/post-template.php */ apply_filters( 'the_excerpt', $excerpt ); -
/** * Filter the WebFinger data. */ apply_filters( 'webfinger_data', array(), $webfinger ); -
/** * Filter ID of the existing post corresponding to post currently importing. */ apply_filters( 'wp_import_existing_post', $post_exists, $post_data ); -
do_action_deprecated( 'activitypub_inbox_post', array( $request ), '8.1.0', 'activitypub_rest_inbox_post' ); -
apply_filters( 'activitypub_oauth_allow_http_redirect_uri', false, $uri, $parsed ); -
do_action( 'activitypub_onboarding_steps' ); -
do_action( 'activitypub_send_activity', $outbox_item->ID, self::get_batch_size(), \get_post_meta( $outbox_item->ID, '_activitypub_outbox_offset', true ) ?: 0 ); -
do_action( 'litespeed_control_set_nocache', 'ActivityPub: cache bucket and request disagree' ); -
apply_filters( 'mastodon_api_status_by_url', null, $request->get_param( 'q' ) ); -
apply_filters( 'opengraph_metadata', array() ); -
apply_filters( 'rest_activitypub_outbox_activity_types', self::ACTIVITY_TYPES ); -
apply_filters( 'wpml_active_languages', null ); -
apply_filters( 'wpml_post_language_details', null, $post->ID ); -
do_action( 'wpml_set_element_language_details', array( 'element_id' => $post_id, 'element_type' => 'post_' . \get_post_type( $post_id ), 'language_code' => $language, ) );
Generated from ActivityPub's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: