JavaScript for WordPress Forums Gutenberg Development register_block_type

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #131923
    Rodrigo Barriuso
    Participant

    I’m confused with the used of this function.
    I’ve seen that in code attached to Advanced Guttenberg course, Zac uses this function to register each block (first he registers the scripts js and css and then he register the blocks (in different PHP files)
    But in the initial Guttenberg course, I don’t this function (register_block_type) nor how he registers the blocks (in PHP)

    #131974
    Zac Gordon
    Keymaster

    Hi!

    I did not use this in the intro course, but did in the advanced one. It is used for registering blocks on the PHP/Server side. This is not required, but there are benefits to doing so.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.