Blocks: Reusable Content, Shortcodes & Site Variables 26.11.17.0 has 15 actions and 61 filters, read directly from its source code on Nov 18, 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 Blocks: Reusable Content, Shortcodes & Site Variables fires an action
add_action( 'blocks_admin_notices', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Blocks: Reusable Content, Shortcodes & Site Variables is about to use
add_filter( 'blocks_cta_anchor', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );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
-
/** * Filter the fallback CTA anchor (when not on the pricing page). */ apply_filters( 'blocks_cta_anchor', '#get-started' ); -
/** * Filter the list of preconnect origins (configured + programmatic). */ apply_filters( 'blocks_resource_hints_preconnect_origins', $origins ); -
/** * Escape hatch for site owners who want Yoast's stock robots output. */ apply_filters( 'blocks_seo_woo_robots_enabled', $this->settings->get_bool( self::OPTION_ENABLED, false ) ); -
/** * Escape hatch for site owners who want the stock sitemap back. */ apply_filters( 'blocks_seo_woo_sitemap_enabled', $this->settings->get_bool( self::OPTION_ENABLED, false ) ); -
/** * Filter the auto-complete decision per order. */ apply_filters( 'blocks_woo_auto_complete_orders', true, $order ); -
/** * Filter the post-checkout redirect target. */ apply_filters( 'blocks_woo_checkout_redirect_url', '/my-account/#awesome' ); -
/** * Filter the BCC address list (overrides the admin option). */ apply_filters( 'blocks_woo_email_bcc_addresses', $defaults ); -
/** * Filter the WooCommerce page IDs treated as non-indexable. */ apply_filters( 'blocks_woo_guarded_page_ids', $ids ); -
/** * Filter the renewal-email BCC list (overrides the admin option). */ apply_filters( 'blocks_woo_subscription_email_bcc_addresses', $bcc_defaults ); -
do_action( 'blocks_admin_notices' ); -
do_action( 'blocks_ga4_delivery_failed', $event_name, $attempt, $error_code ); -
apply_filters( 'blocks_pricing_schema_offer_url', home_url( '/#pricing' ) ); -
do_action( 'blocks_specials_after_cache_purge', true ); -
apply_filters( "blocks_{$provider}_id", $identifier ); -
apply_filters( 'blocks_admin_bar_support_url', 'https://wordpress.org/support/plugin/blocks' ); -
do_action( 'blocks_after_create', $this ); -
do_action( 'blocks_after_delete', $this ); -
do_action( 'blocks_after_save', $this ); -
do_action( 'blocks_after_update', $this ); -
apply_filters( 'blocks_changelog_class_prefix', 'blocks-changelog' ); -
apply_filters( 'blocks_compare_free_column_label', __( 'Free', 'blocks' ) ); -
apply_filters( 'blocks_compare_pro_column_label', $site_name ); -
apply_filters( 'blocks_copy', $new, $this ); -
apply_filters( 'blocks_coupon_shortcode_empty_message', __( 'New Special Discounts Coming Soon!', 'blocks' ) ); -
apply_filters( 'blocks_coupon_shortcode_taxonomy', self::DEFAULT_TAXONOMY ); -
apply_filters( 'blocks_default_pack', $cms_block, $args ); -
apply_filters( 'blocks_faq_pricing_page_id', self::FAQ_PAGE_ID ); -
apply_filters( 'blocks_feature_pricing_page_id', self::FAQ_PAGE_ID ); -
apply_filters( 'blocks_ga4_event_params', $params, $event_name ); -
apply_filters( 'blocks_ga4_should_send', true, $event_name ); -
apply_filters( 'blocks_hsts_max_age', self::HSTS_MAX_AGE ); -
apply_filters( 'blocks_idle_redirect_config', $defaults ); -
do_action( 'blocks_init' ); -
apply_filters( 'blocks_livechat_reload_allowed', true ); -
do_action( 'blocks_loaded', $this ); -
apply_filters( 'blocks_map_meta_cap', $meta_caps ); -
do_action( 'blocks_post_edit_form_tag' ); -
apply_filters( 'blocks_pricing_anchor_id', '' ); -
apply_filters( 'blocks_pricing_order', $order, $product_id ); -
apply_filters( 'blocks_pricing_product_id', $default ); -
do_action( 'blocks_pricing_rendered', $product_id, $offers, $show_discount ); -
apply_filters( 'blocks_pricing_schema_aggregate_rating', null ); -
apply_filters( 'blocks_pricing_schema_brand_name', (string) get_bloginfo( 'name' ) ); -
apply_filters( 'blocks_pricing_schema_return_policy', array( '@type' => 'MerchantReturnPolicy', 'applicableCountry' => 'US', 'returnPolicyCategory' => 'https://schema.org/MerchantReturnNotPermitted', ) ); -
apply_filters( 'blocks_pricing_schema_shipping_details', array( '@type' => 'OfferShippingDetails', 'shippingRate' => array( '@type' => 'MonetaryAmount', 'value' => '0', 'currency' => 'USD', ), 'shippingDestination' => array( '@type' => 'DefinedRegion', 'addressCountry' => 'US', ), 'deliveryTime' => array( '@type' => 'ShippingDeliveryTime', 'handlingTime' => array( '@type' => 'QuantitativeValue', 'minValue' => 0, 'maxValue' => 0, 'unitCode' => 'DAY', ... ); -
apply_filters( 'blocks_pricing_schema_type', 'Product' ); -
apply_filters( 'blocks_pricing_schema_url', home_url() ); -
apply_filters( 'blocks_pricing_switch_page_url', '' ); -
apply_filters( 'blocks_pricing_switch_return_url', '', $order ); -
apply_filters( 'blocks_pricing_variation_subtitle', $default, $variation, $title ); -
apply_filters( 'blocks_properties', $properties, $this ); -
do_action( 'blocks_save', $cms_block ); -
apply_filters( 'blocks_send_hsts_header', true ); -
apply_filters( 'blocks_shortcode', $shortcode, $args, $this ); -
do_action( 'blocks_specials_before_cache_purge' ); -
do_action( 'blocks_updated', $old_ver, $this->version ); -
apply_filters( 'blocks_variables_output_buffer_enabled', true ); -
apply_filters( 'blocks_woo_checkout_after_button_html', $html ); -
apply_filters( 'blocks_woo_checkout_before_button_html', $html ); -
apply_filters( 'blocks_woo_legacy_bcc_owner_active', false ); -
apply_filters( 'blocks_woo_legacy_subscription_email_owner_active', false ); -
apply_filters( 'blocks_woo_subscription_email_cta_label', $cta_label, $site_count ); -
apply_filters( 'blocks_woo_subscription_email_default_product_name', 'Plugin' ); -
apply_filters( 'blocks_woo_subscription_email_heading', 'Your renewal is coming up' ); -
apply_filters( 'blocks_woo_subscription_email_signoff', 'Thanks for being part of our community.' ); -
apply_filters( 'blocks_woo_subscription_email_subject', $subject_token, self::COUPON_AMOUNT, $site_name ); -
apply_filters( 'blocks_woo_thank_you_html', $this->get_default_html( $site_name, $site_slug, $account_url, $contact_url ), $site_name ); -
apply_filters( 'blocks_zaraz_host', 'zaraz.' . $site_host ); -
apply_filters( 'plugin_locale', $locale, 'blocks' ); -
apply_filters( 'signls_sdk_v1_endpoint', $endpoint, $this->state->product() ); -
apply_filters( 'zen_checkout_after_button', $html ); -
apply_filters( 'zen_checkout_before_button', $html ); -
apply_filters( 'zen_email_bcc_addresses', array() );
Generated from Blocks: Reusable Content, Shortcodes & Site Variables'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: