Bird
0
0

Why does WordPress require themes to explicitly declare support for featured images using add_theme_support('post-thumbnails')?

hard📝 Conceptual Q10 of 15
Wordpress - Content Management
Why does WordPress require themes to explicitly declare support for featured images using add_theme_support('post-thumbnails')?
ATo automatically generate image captions for posts
BTo optimize performance by loading image features only when needed
CTo prevent users from uploading images without permission
DBecause featured images are deprecated and need manual activation
Step-by-Step Solution
Solution:
  1. Step 1: Understand WordPress feature support system

    The system requires themes to declare support to enable features selectively.
  2. Step 2: Recognize performance and compatibility reasons

    This avoids loading unnecessary code and UI elements if the theme does not use featured images.
  3. Final Answer:

    To optimize performance by loading image features only when needed -> Option B
  4. Quick Check:

    Theme support controls feature loading = To optimize performance by loading image features only when needed [OK]
Quick Trick: Declare theme support to enable features and improve performance [OK]
Common Mistakes:
MISTAKES
  • Thinking featured images are deprecated
  • Believing it controls user upload permissions
  • Assuming it auto-generates captions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes