Premium Blocks 2.3.22 has 3 actions and 45 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 Premium Blocks fires an action
add_action( 'breeze_clear_all_cache', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Premium Blocks is about to use
add_filter( 'pbg_display_conditions_strip_from_excerpt', function( $value, $post ) {
// Change $value here.
return $value;
}, 10, 2 );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
2.3.21 → 2.3.22 · Nov 19, 2026 · 0 added, 0 removed
No hooks were added or removed in this release.
2.3.20 → 2.3.21 · Nov 19, 2026 · 2 added, 0 removed
Added
- filter
pbg_form_config_max_age - filter
nonce_life
All hooks
-
/** * Filters whether to drop every block with enabled Display Conditions from * excerpts, without evaluating them. */ apply_filters( 'pbg_display_conditions_strip_from_excerpt', false, $post ); -
apply_filters( 'pb_settings', get_option('pbg_global_features', array()) ); -
apply_filters( 'pb_global_features', get_option('pbg_global_features', array()) ); -
apply_filters( 'pb_performance_options', get_option('pbg_performance_options', array()) ); -
apply_filters( 'pb_integrations_options', get_option('pbg_integrations_options', array()) ); -
apply_filters( 'pb_options', get_option('pb_options', array()) ); -
apply_filters( 'pbg_loop_post_types', $options ); -
do_action( 'breeze_clear_all_cache' ); -
do_action( 'breeze_clear_varnish' ); -
apply_filters( 'nonce_life', DAY_IN_SECONDS, 'pbg_form_nonce' ); -
apply_filters( 'pb_favorite', get_option( 'pbg_favorite_templates', array() ) ); -
apply_filters( 'pb_panel_options', $options ); -
apply_filters( 'pbg_add_css_file', $this->css_files ); -
apply_filters( 'pbg_add_fonts', self::$fonts ); -
apply_filters( 'pbg_blocks_print_google_fonts', true ); -
apply_filters( 'pbg_display_conditions_excluded_blocks', array() ); -
apply_filters( 'pbg_dynamic_css', '' ); -
apply_filters( 'pbg_font_subset', '', $name ); -
apply_filters( 'pbg_form_config_max_age', (int) apply_filters('nonce_life', DAY_IN_SECONDS, 'pbg_form_nonce') ); -
do_action( 'pbg_get_fonts' ); -
apply_filters( 'pbg_get_local_fonts_base_path', $this->get_filesystem()->wp_content_dir() . '/uploads/premium-blocks-for-gutenberg' ); -
apply_filters( 'pbg_get_local_fonts_base_url', content_url() . '/uploads/premium-blocks-for-gutenberg' ); -
apply_filters( 'pbg_get_local_fonts_subfolder_name', 'fonts' ); -
apply_filters( 'pbg_google_fonts', $fonts ); -
apply_filters( 'pbg_instagram_feed_has_error', false ); -
apply_filters( 'pbg_instagram_posts', pbg_get_instagram_posts( $access_token, $max_posts ) ); -
apply_filters( 'pbg_post_featured_image_sizes', $image_sizes ); -
apply_filters( 'pbg_post_grid_localize_script', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ), ) ); -
apply_filters( 'pbg_post_loop_taxonomies', $return_array ); -
apply_filters( "pbg_post_query_args_{$block_type}", $args, $attributes ); -
apply_filters( 'pbg_post_query_max_per_page', self::MAX_PER_PAGE ); -
apply_filters( 'pbg_render_fonts', self::get_fonts() ); -
apply_filters( 'pbg_trusted_proxy_headers', array() ); -
apply_filters( 'pbg_wordpress_locales', $wp_lang_locale ); -
apply_filters( 'pbg_wrapper_link_localize_script', array( 'blocks' => $this->extra_options_blocks, ) );
Generated from Premium Blocks'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: