Title: New Block Tools on WordPress 5.5
Author: Riad Benguella
Published: July 27, 2020

---

 [  ](https://profiles.wordpress.org/youknowriad/) [Riad Benguella](https://profiles.wordpress.org/youknowriad/)
12:43 pm _on_ July 27, 2020     
Tags: [5.5 ( 87 )](https://make.wordpress.org/core/tag/5-5/),
[block-editor ( 143 )](https://make.wordpress.org/core/tag/block-editor/), [dev-notes ( 648 )](https://make.wordpress.org/core/tag/dev-notes/)

# New Block Tools on WordPress 5.5

In WordPress 5.5, the coreCore Core is the set of software required to run WordPress.
The Core Development Team builds WordPress. blocks continue to evolve with the addition
of new blockBlock Block is the abstract term used to describe units of markup that,
composed together, form the content or layout of a webpage using the WordPress editor.
The idea combines concepts of what in the past may have achieved with shortcodes,
custom HTML, and embed discovery into a single consistent API and user experience.
tools.

## Custom Line Heights

Users can define custom line heights for headings and paragraphs. Themes can opt-
in into this feature by defining the `custom-line-height` theme support flag.

    ```notranslate
    add_theme_support( 'custom-line-height' );
    ```

## Custom Units

In addition to pixels, users can now use other units to define the height of Cover
blocks. The available units are: px, em, rem, vh, vw. Themes can opt-in into this
feature by defining the `custom-units` theme support flag.

    ```notranslate
    add_theme_support( 'custom-units' );
    ```

Themes can also filterFilter Filters are one of the two types of Hooks [https://codex.wordpress.org/Plugin_API/Hooks](https://codex.wordpress.org/Plugin_API/Hooks).
They provide a way for functions to modify data of other functions. They are the
counterpart to Actions. Unlike Actions, filters are meant to work in an isolated
manner, and should never have side effects such as affecting global variables and
output. the available custom units.

    ```notranslate
    add_theme_support( 'custom-units', 'rem', 'em' );
    ```

[#5-5](https://make.wordpress.org/core/tag/5-5/), [#block-editor](https://make.wordpress.org/core/tag/block-editor/),
[#dev-notes](https://make.wordpress.org/core/tag/dev-notes/)

### Share this:

 * [  Threads ](https://make.wordpress.org/core/2020/07/27/new-block-tools-on-wordpress-5-5/?share=threads)
 * [  Mastodon ](https://make.wordpress.org/core/2020/07/27/new-block-tools-on-wordpress-5-5/?share=mastodon)
 * [  Bluesky ](https://make.wordpress.org/core/2020/07/27/new-block-tools-on-wordpress-5-5/?share=bluesky)
 * [  X ](https://make.wordpress.org/core/2020/07/27/new-block-tools-on-wordpress-5-5/?share=x)
 * [  Facebook ](https://make.wordpress.org/core/2020/07/27/new-block-tools-on-wordpress-5-5/?share=facebook)
 * [  LinkedIn ](https://make.wordpress.org/core/2020/07/27/new-block-tools-on-wordpress-5-5/?share=linkedin)

 1. ![](https://secure.gravatar.com/avatar/34c19c0923466a5bf3c232ad7885b9985cd075c79ac0beb4b802c3ee80d71452?
    s=32&d=mm&r=g)
 2.  [WebMan Design | Oliver Juhas](https://profiles.wordpress.org/webmandesign/)  
    1:40 pm _on_ August 18, 2020
 3. Is there a way to set a default line height value for the custom line height field?
    It has the `placeholder="1.5"` attribute which actually does not match my theme
    styles…
 4.  * ![](https://secure.gravatar.com/avatar/34c19c0923466a5bf3c232ad7885b9985cd075c79ac0beb4b802c3ee80d71452?
       s=32&d=mm&r=g)
     *  [WebMan Design | Oliver Juhas](https://profiles.wordpress.org/webmandesign/)
       1:54 pm _on_ August 18, 2020
     * And even better, if it could be filterable by blockBlock Block is the abstract
       term used to describe units of markup that, composed together, form the content
       or layout of a webpage using the WordPress editor. The idea combines concepts
       of what in the past may have achieved with shortcodes, custom HTML, and embed
       discovery into a single consistent API and user experience.. As I have different
       line height for paragraphs and for headings.

Comments are closed.

# Post navigation

[← Opcode Cache Invalidation in WordPress 5.5](https://make.wordpress.org/core/2020/07/27/opcode-cache-invalidation-in-wordpress-5-5/)

[Auto-updates feature weekly meeting agenda – July 28th, 2020 →](https://make.wordpress.org/core/2020/07/28/auto-updates-feature-weekly-meeting-agenda-july-28th-2020/)