@WordCampLanc @paulbarthmaier When you create a block all of the data for that block winds up in the database via an HTML comment embedded into the post_content field where the block should be rendered.
@WordCampLanc @paulbarthmaier “With the advent of the new block editor, our shared understanding of development best practices is changing. It’s like the wild wild west all over again.”
@WordCampLanc @paulbarthmaier You can’t create a block with just PHP (yet) you do need a little bit of JavaScript.
Slides for my Standing Out in the Search Results presentation at #wclanc
@WordCampLanc @paulbarthmaier Block Filters in the Gutenberg Handbook wordpress.org/gutenberg/handbook…
@WordCampLanc @paulbarthmaier Block filters allow you to extend or change the functionality of a Gutenberg block.
Post lunch talks from @WordCampLanc continue.
Now listening in on @paulbarthmaier’s “Block Filters: The Answer to Customizing Blocks Without Rolling Your Own”
Lunch time at #WCLANC right now. If you need a friend come find me in the weird pickle t-shirt. Can’t miss it.
Follow Ashley on Twitter at @ash__eberly
“There is a WordPress filter to import a custom icon for a Block. Save SVG file as a JavaScript file and then it imports it as a JavaScript variable.”
What if you want to add an icon to a Gutneberg block?
You can add a custom SVG for a more branded custom experience.
You can use ACF repeater fields within a Gutenberg block.
An awesome part of WordCamps is during talk Q/As where often times the speaker learns something as well.
“Is the ACF block editor only going to be available to paid versions? Is it coming to the free version?” – @daljo628
(the room is not sure)
@wp_acf do you know?
ACF Blocks has the option to switch between editor mode and preview mode.
pcadv.org/ uses Gutenberg to offer a plethora of design options and variations for the client while also locking down the code
acf_register_block() function: advancedcustomfields.com/resourc…
Slides and resources mentioned in her talk can be found at asheberly.com/wordcamp-2019/
@wp_acf adds support for building blocks
advancedcustomfields.com/blog/ac…
“How many people use Advanced Custom Fields?” Almost entire room raises their hands.
There’s nothing against React, sometimes we just need to get stuff done.