• Resolved myrmod

    (@myrmod)


    Hello,

    I’m trying to create a custom gutenberg block. There I want to place the posts author name, as well as creation and edit time of the current post.

    Is there a proper way to do this? I can’t believe that it’s so difficult as I found it.

    Kind regards,
    Myrmod

Viewing 1 replies (of 1 total)
  • Thread Starter myrmod

    (@myrmod)

    Well, I just found the way:

    e.g: wp.data.select(‘core’).getAuthors()[0].name

    Like this you can access a lot of data.

    kind regards,
    Myrmod

Viewing 1 replies (of 1 total)
  • The topic ‘Global variables in php’ is closed to new replies.