Sidebar Block icon
Page Builders & Blocks

Sidebar Block hooks reference

Sidebar Block 1.0.0 has 0 actions and 2 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.

functions.phpyour child theme
// Change a value Sidebar Block is about to use
add_filter( 'sidebar-block/register_block_type/args', 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

  • includes/Block.php line 55
    /**
     * Filters registration arguments for `wmd/sidebar` block.
     */
    apply_filters( 'sidebar-block/register_block_type/args', array( 'api_version' => 3, 'version' => SIDEBAR_BLOCK_VERSION, 'title' => esc_html__( 'Sidebar', 'sidebar-block' ), 'description' => esc_html__( 'Displays a sidebar on front-end of the website.', 'sidebar-block' ), 'category' => 'theme', 'icon' => 'align-pull-right', 'keywords' => array( esc_html_x( 'sidebar', 'Block search keyword. Theme Hook Alliance abbreviation.', 'sidebar-block' ), esc_htm... );
  • includes/Register.php line 70
    /**
     * Filters sidebar registration arguments.
     */
    apply_filters( 'sidebar-block/register_sidebar/args', array( 'id' => 'sidebar', 'name' => esc_html_x( 'Sidebar', 'Widget area name.', 'sidebar-block' ), 'description' => esc_html_x( 'Default sidebar area.', 'Widget area description.', 'sidebar-block' ), 'before_widget' => '<section id="%1$s" class="wp-block-widget wmd-block-sidebar-widget widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<h2 class="wp-block-widget__title wmd-block... );

Generated from Sidebar Block'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.

Plugin 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 this

Not 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: