jetpack_widget_visibility_server_side_render_blocks

jetpack_widget_visibility_server_side_render_blocks

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.12.5

apply_filters('jetpack_widget_visibility_server_side_render_blocks') is found 1 times:

  • /modules/widget-visibility/widget-conditions.php line 176
    		 * @module widget-visibility
    		 *
    		 * @param string[] $blocks Array of block names from WordPress core and WooCommerce.
    		 */
    		$blocks_to_add_visibility_conditions = apply_filters( 'jetpack_widget_visibility_server_side_render_blocks', $blocks );
    
    		$filter_metadata_registration = function ( $settings, $name ) use ( $blocks_to_add_visibility_conditions ) {
    			if ( in_array( $name, $blocks_to_add_visibility_conditions, true ) && ! empty( $settings['attributes'] ) ) {
    				$settings['attributes']['conditions'] = array(
    					'type' => 'object',
    				);