Daymark Hooks
Action and filter reference for the Daymark plugin and its connectors
Available Hooks
This plugin provides the following hooks:
Actions
- daymark_import_responses - This action is documented later in this method.
- daymark_published - Fires after a Mark has been successfully created.
- daymark_push_sent - Fires after a push was sent to a user's devices.
- daymark_register_connectors - Fires after built-in Daymark connectors are registered.
- daymark_register_subscription_sources - Fires so inbound subscription sources can register themselves.
- daymark_subscription_created - Fires after a site is followed (a subscription row is created).
- daymark_subscription_deleted - Fires after a site is unfollowed (its subscription row deleted).
- daymark_subscription_post_ingested - Fires after a followed site's new post is saved, from a poll, a manual refresh, or a WebSub delivery. Not for a post already seen.
- daymark_syndication_complete - Fires after Daymark has attempted publishing to all selected destinations.
Filters
- daymark_accept_heic_uploads - Filters whether Daymark accepts HEIC/HEIF photo uploads.
- daymark_ai_auto_suggest - Whether the composer sends drafts to the AI provider without a tap.
- daymark_announce_follows - Whether following a site sends it a follow Webmention.
- daymark_app_badge_unread - Whether the installed Daymark app shows the number of unread notifications on its icon (the app badge).
- daymark_app_content_security_policy - Filters the app shell's Content-Security-Policy header.
- daymark_backflow_freshen_window - Filters how long a notifications view treats the last backflow sync as fresh, in seconds.
- daymark_backflow_sync_days - Filters how far back automatic backflow syncing looks, in days.
- daymark_bionic_reading_font - Whether the Daymark app uses the Bionic Reading font.
- daymark_bionic_reading_font_family - Filters which Font Library family Daymark uses for the Bionic Reading font. Return 0 to skip the Font Library.
- daymark_bionic_reading_font_url - Filters the address of the Bionic Reading web font file.
- daymark_blogroll_public - Whether the sites you follow are published as a public OPML blogroll.
- daymark_bookmark_image_fetch_timeout - Filters the timeout, in seconds, for fetching a bookmark image.
- daymark_bookmark_image_max_bytes - Filters the largest image, in bytes, Daymark saves for an offline bookmark.
- daymark_bridgy_fed_bridged - Filters whether this site is bridged with Bridgy Fed, so Like and Reblog Marks of fediverse and Bluesky posts are sent through it.
- daymark_builtin_webmention - Whether Daymark sends and receives Webmentions itself when the Webmention plugin isn't active.
- daymark_capture_camera_metadata - Whether camera, lens, and exposure details already in a photo's file are stored with the Mark.
- daymark_capture_location - Whether a Check In's location is captured and stored.
- daymark_capture_weather - Whether a Check In's current weather is looked up and stored.
- daymark_comment_import_approved - The
comment_approvedvalue for a reply Daymark's own importer stores (replies the ActivityPub, ATmosphere, and Webmention plugins deliver follow those plugins' own settings). - daymark_compact_timeline - Whether the app lists posts compactly (title and thumbnail only) instead of as full cards.
- daymark_default_categories - Filters the default category IDs for a Mark type.
- daymark_default_destinations - Filters the default destination connector IDs for a Mark type.
- daymark_featured_content_allowed_types - Filters which Featured Content type values are accepted by the meta sanitizer and offered by the editor panel. Scoped to what is implemented end-to-end.
- daymark_featured_content_gallery_max - Filters the maximum number of images stored for gallery Featured Content.
- daymark_featured_content_html - Filters a post's rendered Featured Content markup — the escape hatch for a theme that wants Featured Content to look different from this class's own default rendering.
- daymark_featured_content_oembed_discovery - Filters whether Featured Content may use oEmbed discovery for a post.
- daymark_featured_content_replaces_featured_image - Filters whether Featured Content, when set, replaces a theme's ordinary Featured Image rendering wherever it calls
the_post_thumbnail(). Default true. A theme that wants Featured Content to render somewhere different from its Featured Image slot (rather than in its place) can set this to false and calldaymark_the_featured_content()/daymark_get_featured_content()directly instead. - daymark_featured_content_seo_plugin - Filters which SEO / Open Graph plugin Daymark treats as handling this page's share tags. Return '' to have Daymark print its own minimal tags; any other value makes Daymark hand off and print nothing.
- daymark_featured_content_supported_post_types - Filters which post types show the "Set featured content" control.
- daymark_featured_content_thumbnail_url - Filters the share image URL resolved from a post's Featured Content, used for its oEmbed
thumbnail_urland its Open Graph / Twitter Card image. Return an empty string to share no image. - daymark_fill_note_title - Whether to give an untitled Note (an Aside-format post) a title when it's published.
- daymark_geocode_cache_ttl - Filters how long a reverse-geocode result (including a failed lookup, cached as an empty string) is cached for.
- daymark_geocode_fetch_timeout - Filters the HTTP timeout, in seconds, used for the best-effort Nominatim reverse-geocode lookup.
- daymark_geocode_search_cache_ttl - Filters how long a forward place-search result (including an empty one, cached the same way) is cached for.
- daymark_hide_notes_on_home - Whether Notes (Aside-format posts) are left off the blog's home page and out of its main RSS/Atom feed.
- daymark_import_network_reactions - Allows a polling connector to report the like and reblog counts for its copy of a Mark, on the same sync that imports its replies.
- daymark_import_network_responses - Allows a real connector plugin to handle response import for a network instead of the mock importer.
- daymark_jetpack_followers_pre_fetch - Short-circuit the WordPress.com followers request (tests).
- daymark_jetpack_link_state - Filters the Jetpack connection state the Connectors tab shows.
- daymark_jetpack_older_likes_batch - Filters how many posts each pass copies WordPress.com likes for.
- daymark_note_short_form_limit - The number of characters the block editor's Note length counter counts down from.
- daymark_publish_helper_adapters - Filter the controllable publishing-helper adapters. Each entry is keyed by id and carries
label,slugs, andbind, wherebindis a callable that registers the plugin's own public per-post control filter. - daymark_publish_helper_plugins - Filter the map of detectable publishing-helper plugins.
- daymark_publish_location_publicly - Whether a Check In's exact coordinates are rendered as p-geo/h-geo markup on its own page.
- daymark_push_message - Filter a push message before it's queued. Return a non-array to skip it.
- daymark_push_request_timeout - Filter the timeout for one push request, in seconds.
- daymark_push_service_hosts - Filter the push service hosts a subscription endpoint may use.
- daymark_push_ttl - Filter how long a push service keeps an undelivered message, in seconds. Apple keeps one at most 30 days.
- daymark_push_vapid_subject - Filter the VAPID subject sent to push services. Must be an https URL or a mailto: address.
- daymark_rate_limits - Filter per-action rate limits.
- daymark_read_external_notes - Filters which other plugins' notes post types Daymark reads.
- daymark_read_indieblocks_likes - Filters whether Daymark reads Likes made with IndieBlocks.
- daymark_reader_import_pre_fetch - Short-circuits the Reader follows request. Return the decoded response (a list of followed sites) or a WP_Error to skip the real WordPress.com call. Used by the test suite, since the real Jetpack classes can't be loaded there.
- daymark_reader_import_status - Filters whether the WordPress.com Reader import is offered.
- daymark_receive_follows_with_webmention_plugin - Whether Daymark records follows sent to the Webmention plugin's endpoint.
- daymark_set_post_kind - Filters whether Daymark files its Marks under Post Kinds kinds.
- daymark_speech_audio - Supplies a post's audio instead of asking the AI provider.
- daymark_speech_max_chars - How many characters of a post are read aloud.
- daymark_speech_voice - The voice name to ask the AI provider for when reading a post aloud. Voice names are provider-specific (for example
alloyfor OpenAI). Empty uses the provider's default. - daymark_staged_upload_ttl - Filters how long a finished upload no Mark has used is kept, in seconds.
- daymark_subscription_content_fetch_timeout - Filters the HTTP timeout, in seconds, used for the click-through full-content fetch.
- daymark_subscription_feed_fetch_timeout - Filters the HTTP timeout, in seconds, used when fetching a subscription's feed.
- daymark_subscription_friends_roles - Filters the WordPress roles that count as a Friends-plugin relationship when find_friend_user() matches a site URL to a user.
- daymark_subscription_friends_user_scan_limit - Filters how many users find_friend_user() scans looking for a matching
user_url. Defaults comfortably above any realistic number of accounts (real + friend + subscription) on a personal WordPress site. - daymark_subscription_html_fetch_timeout - Filters the HTTP timeout, in seconds, used when fetching a subscribed site's homepage HTML during discovery.
- daymark_subscription_manual_refresh_interval - Filters how long a manual refresh treats a subscription as too recently refreshed to poll again, in seconds.
- daymark_subscription_max_content_bytes - Filters the maximum full-content click-through response size, in bytes, fetch_full_content() will download.
- daymark_subscription_max_feed_bytes - Filters the maximum feed response size, in bytes, fetch() will download via fetch_feed()/SimplePie.
- daymark_subscription_max_html_bytes - Filters the maximum site-HTML response size, in bytes, a subscription source's discovery-time homepage fetch will download.
- daymark_subscription_oembed_cache_ttl - Filters how long a resolved (or failed) oEmbed lookup is cached, in seconds.
- daymark_subscription_oembed_fetch_timeout - Filters the HTTP timeout, in seconds, used when resolving an oEmbed preview.
- daymark_subscription_oembed_max_bytes - Filters the maximum oEmbed response size, in bytes, this class will download.
- daymark_subscription_opengraph_cache_ttl - Filters how long a resolved (or failed) Open Graph lookup is cached, in seconds.
- daymark_subscription_opengraph_fetch_timeout - Filters the HTTP timeout, in seconds, used when resolving an Open Graph preview.
- daymark_subscription_opengraph_max_bytes - Filters the maximum page size, in bytes, this class will download.
- daymark_subscription_opml_max_entries - Filters the maximum number of
<outline>entries an OPML import will accept in one request. A file over this cap is rejected outright (nothing imported) rather than partially processed. - daymark_subscription_poll_interval - Filters how often the recurring poll checks every subscription, in seconds.
- daymark_subscription_refresh_all_time_budget - Filters how many seconds a refresh of every subscription spends polling before handing the rest to a background poll.
- daymark_subscription_url_guard_resolved_addresses - Filters the resolved IP addresses for a host, short-circuiting the real DNS lookup below.
- daymark_subscription_url_guard_skip_dns_resolution - Filters whether Daymark_Subscription_Url_Guard should skip its own DNS-resolution pre-flight entirely.
- daymark_text_to_speech - Whether the app's full post view offers a Listen button.
- daymark_text_to_speech_supported - Whether Daymark treats the AI provider as able to turn text into speech.
- daymark_title_field_policy - Filters the per-type policy for the composer's optional Title field.
- daymark_upload_chunk_bytes - Filters the size of each upload part, in bytes.
- daymark_upload_cleanup_time_budget - Filters how long one cleanup run may spend deleting unused uploads, in seconds. Whatever is left waits for the next run.
- daymark_upload_max_bytes - Filters the maximum accepted size of a single uploaded file, in bytes.
- daymark_upload_session_ttl - Filters how long an unfinished upload session is kept, in seconds, counted from its last activity.
- daymark_upload_total_max_bytes - Filters the maximum combined size of one upload request, in bytes.
- daymark_use_parse_this - Filters whether Daymark uses Parse This when it is active.
- daymark_weather_fetch_timeout - Filters the HTTP timeout, in seconds, used for the best-effort Open-Meteo current-weather lookup.
- daymark_webmention_post_types - Post types Daymark's built-in sender sends Webmentions for.
- daymark_webmention_receive_global_limit - Webmentions (including follows) all senders together may queue per hour.
- daymark_webmention_receive_limit - Webmentions one source host may queue per hour.
- daymark_websub_lease_seconds - Filters the requested WebSub subscription lease, in seconds.
- daymark_websub_max_attempts - Filters how many subscribe requests a WebSub subscription gets (the first plus retries) before it is marked failed.
- daymark_websub_max_delivery_bytes - Filters the maximum WebSub content-delivery body size, in bytes.
- daymark_websub_renewal_window - Filters how long before lease expiry a WebSub subscription renews, in seconds.
- daymark_websub_verification_timeout - Filters how long Daymark waits for a WebSub hub to verify a subscription before treating the request as lost and retrying.