ska-blocks 1.2.12 has 10 actions and 45 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 ska-blocks fires an action
add_action( 'ska_blocks_init', function() {
// Your code runs here.
}, 10, 1 );
// Change a value ska-blocks is about to use
add_filter( 'ska_blocks_background', function( $value, $block_content, $block, $preload ) {
// Change $value here.
return $value;
}, 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.
All hooks
-
/** * Can short-circuit rendering (ska-theme uses this to inject placeholder * images). */ apply_filters( 'ska_blocks_background', '', $block_content, $block, $preload ); -
/** * Action triggered after ska-blocks initialization is done. It's same as using * the `init` hook but you don't need to check if `ska_blocks` function exists. */ do_action( 'ska_blocks_init' ); -
/** * This filter allows to append to global styles, how ever the additions are * not cached. When appending something expensive, like a `file_get_contents()` * result, then use the `ska_blocks_tailwind_global_css` filter along with * `ska_blocks_tailwind_global_css_key` filter to ensure cache busting. */ apply_filters( 'ska_blocks_tailwind_global_styles', $css ); -
/** * Tailwind theme overrides provided by any WP theme that supports ska-blocks. */ apply_filters( 'ska_blocks_tailwind_theme', '' ); -
/** * Tailwind plugins provided by any WP theme that supports ska-blocks. */ apply_filters( 'ska_blocks_tailwind_theme_plugins', '' ); -
do_action( 'ska_blocks_clear_cache', 'switch_theme' ); -
do_action( 'cache_enabler_clear_complete_cache' ); -
apply_filters( 'ska_blocks_image_low_res_size', 'medium', $attributes, $block ); -
apply_filters( 'ska_blocks_style_cache_show_info', $this->context->is_site_admin() ); -
apply_filters( 'ska_blocks_admin_script_data', [ 'is_admin' => $this->context->is_admin(), 'is_elevated' => $this->context->is_elevated(), 'can_unfiltered_html' => current_user_can('unfiltered_html'), 'inspectorControlsGroup' => apply_filters('ska_blocks_tailwind_inspector_controls_group', $options['inspectorControlsGroup']), 'options' => $options, 'optionsSchema' => $this->options->get_schema(), 'presetOptions' => $presets->get_options(), ... ); -
apply_filters( 'ska_blocks_allowed_duplicate_selectors', $this->allowed_duplicate_selectors ); -
apply_filters( 'ska_blocks_apply_custom_attributes', [], $block['attrs'] ); -
apply_filters( 'ska_blocks_at_rules', array_merge($at_rules, $late_at_rules) ); -
do_action( 'ska_blocks_cache_cleared' ); -
do_action( 'ska_blocks_clearing_cache', $source ); -
do_action( 'ska_blocks_css_processor_caught', $e ); -
apply_filters( 'ska_blocks_css_processor_strict', false ); -
apply_filters( 'ska_blocks_current_user_can_unfiltered_blocks', $can_unfiltered_html ); -
apply_filters( 'ska_blocks_dynamic_permalink', get_the_permalink(), $link_attrs, $block ); -
apply_filters( 'ska_blocks_dynamic_shortcode_output', $output, $shortcode ); -
apply_filters( 'ska_blocks_dynamic_shortcode_value', $value, $id ); -
apply_filters( 'ska_blocks_gallery_image_attr', [ 'class' => $cover ? 'w-full h-full object-cover rounded-[inherit] aspect-[inherit]' : '', ], $id, $attributes, $block ); -
apply_filters( 'ska_blocks_get_font_url', '', $id, $config ); -
do_action( 'ska_blocks_google_fonts_preconnect' ); -
apply_filters( 'ska_blocks_icon_sources', $sources ); -
apply_filters( 'ska_blocks_image_featured_placeholder', $placeholder, $attributes, $post_id ); -
apply_filters( 'ska_blocks_inline_global_styles', $inline, $setting ); -
apply_filters( 'ska_blocks_managed_presets', [] ); -
apply_filters( 'ska_blocks_managed_variations', [] ); -
apply_filters( 'ska_blocks_no_order_at_rules', [ '@media (hover:hover)', '@media not all and (hover:hover)', ] ); -
apply_filters( 'ska_blocks_plugin_config', [ 'file' => __FILE__, 'before_init' => function(ska\plugin\Context $context) { load_plugin_textdomain($context->slug(), false, $context->slug() . '/languages'); }, 'options' => function() { return require dirname(__FILE__) . '/config/options.php'; }, 'modules' => [ 'plugin' => ska\blocks\Plugin::class, 'permissions' => ska\blocks\Permissions::class, 'tailwind4' => function(ska\plugin\Context $c... ); -
apply_filters( 'ska_blocks_preload_global_styles', $preload, $setting ); -
apply_filters( 'ska_blocks_query_context_consumers', [ 'core/post-template', 'core/query-pagination-numbers', 'core/query-pagination-previous', 'core/query-pagination-next', 'core/query-pagination-no-results', 'core/query-title', ] ); -
apply_filters( 'ska_blocks_query_filters_filter_main_query', true, $filter, $context ); -
apply_filters( 'ska_blocks_render_font', '', $id, $config ); -
apply_filters( 'ska_blocks_render_raw_styles', $css, $css_document, $raw_css ); -
apply_filters( 'ska_blocks_render_styles', $css, $css_document, $css_to_render ); -
apply_filters( 'ska_blocks_render_tailwind_block', $block_content, $ska_blocks, $block ); -
apply_filters( 'ska_blocks_sanitize_block_callbacks', $this->sanitize_callbacks ); -
apply_filters( 'ska_blocks_script_data_script_handle', $this->context->get_script_handle('blocks') ); -
apply_filters( 'ska_blocks_sideloader_enabled', true ); -
apply_filters( 'ska_blocks_skip_google_fonts_preconnect', false ); -
do_action( 'ska_blocks_style_cache_clear' ); -
do_action( 'ska_blocks_style_cache_cleared' ); -
apply_filters( 'ska_blocks_tailwind_default_compat', '' ); -
apply_filters( 'ska_blocks_tailwind_default_compat_compiled', '' ); -
apply_filters( 'ska_blocks_tailwind_global_css', trim($css) ); -
apply_filters( 'ska_blocks_tailwind_global_css_key', [ self::VERSION, $this->get('t'), $this->context->version(), $this->context->module(Options::class)->get('lastmod'), $this->context->module(Presets::class)->get('lastmod'), get_locale(), ] ); -
apply_filters( 'ska_blocks_tailwind_inspector_controls_group', $options['inspectorControlsGroup'] ); -
apply_filters( 'ska_blocks_tailwind_preflight_css', $this->get('compiledPreflight') ); -
apply_filters( 'ska_blocks_tailwind_theme_compiled', get_config('tailwind4/default-theme-compiled') ); -
apply_filters( 'ska_blocks_tailwind_theme_css', $this->get('compiledTheme') ); -
apply_filters( 'ska_blocks_user_dynamic_link', do_shortcode(sanitize_text_field($link)), $slug, $link, $link_attrs, $block ); -
apply_filters( 'ska_blocks_user_dynamic_link_is_active', false, $slug, $link, $link_attrs, $block ); -
do_action( "ska_blocks_using_font_source_{$config['source']}" );
Generated from ska-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: