Bird
0
0

To create a custom Gutenberg block that allows users to input and save text, which two functions must you implement?

hard📝 Conceptual Q8 of 15
Wordpress - Content Management
To create a custom Gutenberg block that allows users to input and save text, which two functions must you implement?
AA setup function and a teardown function.
BOnly a save function, since edit is optional.
CA register function and a render function.
DAn edit function to handle input and a save function to output content.
Step-by-Step Solution
Solution:
  1. Step 1: Understand block lifecycle

    Edit controls the editor UI; save defines front-end output.
  2. Step 2: Identify required functions

    Both edit and save are necessary for editable content blocks.
  3. Final Answer:

    An edit function to handle input and a save function to output content. -> Option D
  4. Quick Check:

    Edit handles input, save outputs content [OK]
Quick Trick: Edit for input, save for output [OK]
Common Mistakes:
  • Thinking save alone is enough
  • Confusing register with edit or save
  • Assuming setup/teardown are required

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes