Soapbox for Blygger 0.1.6 has 8 actions and 15 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 Soapbox for Blygger fires an action
add_action( 'soapbox_blyg_event', function( $result, $result2, $result3, $origin ) {
// Your code runs here.
}, 10, 4 );
// Change a value Soapbox for Blygger is about to use
add_filter( 'soapbox_blyg_snapshot', function( $snapshot, $origin, $source_key ) {
// Change $snapshot here.
return $snapshot;
}, 10, 3 );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.
All hooks
-
/** * Fires after every ledger event. */ do_action( 'soapbox_blyg_event', $result['event'], $result['id'], $result['version'], $origin ); -
/** * Filters a snapshot before it is validated and compared with the ledger. */ apply_filters( 'soapbox_blyg_snapshot', $snapshot, $origin, $source_key ); -
/** * This filter is documented in wp-includes/http.php */ apply_filters( 'http_allowed_safe_ports', array( 80, 443, 8080 ), $host, $url ); -
/** * This filter is documented in wp-includes/http.php */ apply_filters( 'http_request_host_is_external', false, $host, $url ); -
/** * This filter is documented in wp-includes/class-wp-http-streams.php */ apply_filters( 'https_local_ssl_verify', false ); -
/** * Filters the elements the sanitiser keeps, as tag => list of attribute names. */ apply_filters( 'soapbox_blyg_allowed_html', $allowed ); -
/** * Filters the Cache-Control value of a surface response. */ apply_filters( 'soapbox_blyg_cache_control', sprintf( empty( $response['immutable'] ) ? 'public, max-age=%1$d, s-maxage=%1$d' : 'public, max-age=%1$d, s-maxage=%1$d, immutable', $lifetime ), ! empty( $response['immutable'] ), $status ); -
/** * Filters how long a live document (anything but a pinned version) may be * cached. */ apply_filters( 'soapbox_blyg_cache_lifetime', $seconds ); -
/** * Filters which origin the current page advertises with rel="blyg". */ apply_filters( 'soapbox_blyg_discovery_origin', $claimed, $this->registry->all() ); -
/** * Filters the post meta keys that are part of a post's fingerprint. */ apply_filters( 'soapbox_blyg_fingerprint_meta', array( '_thumbnail_id' ), $post ); -
/** * Fires when a mention has been verified, or has stopped verifying. */ do_action( 'soapbox_blyg_mention', $fields['status'], $mention, $fields ); -
/** * Filters an origin's arguments before they are validated. */ apply_filters( 'soapbox_blyg_origin_args', $args, $key ); -
/** * Fires after a version is pinned. */ do_action( 'soapbox_blyg_pinned', $id, $version, $item['origin_key'] ); -
/** * Fires at the end of a request in which documents of the blyg changed, with * the addresses of those documents, and once more a little later. Hook a * cache's own purge here. */ do_action( 'soapbox_blyg_purge_urls', array_values( (array) $urls ), array_values( (array) $essential ) ); -
/** * Fires when a reconcile of the posts origin has checked every live item. */ do_action( 'soapbox_blyg_reconciled' ); -
/** * Fires on `init` for sources to register their origins with * soapbox_blyg_register_origin(). */ do_action( 'soapbox_blyg_register_origins' ); -
/** * Filters a post's rendered body before it is sanitised. */ apply_filters( 'soapbox_blyg_rendered_body', $html, $post ); -
/** * Filters the address a Webmention request is taken to come from. */ apply_filters( 'soapbox_blyg_webmention_client', $address ); -
/** * Filters the Webmention receiver's limits. */ apply_filters( 'soapbox_blyg_webmention_limits', array( 'host' => 60, 'client' => 300, 'client_pending' => 50, 'outbound' => 300, 'outbound_client' => 75, 'origin' => 3000, 'pending' => 1000, 'resend_seconds' => 10 * MINUTE_IN_SECONDS, ) ); -
do_action( 'breeze_purge_varnish_urls', Purge::bounded( $urls, $essential ) ); -
do_action( 'soapbox_blyg_forget_stale' ); -
apply_filters( 'soapbox_blyg_is_public', $public, $post ); -
apply_filters( 'the_content', $post->post_content );
Generated from Soapbox for Blygger'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: