Bird
0
0

Which of the following can you NOT do inside the functions.php file?

easy📝 Conceptual Q2 of 15
Wordpress - Theme Structure and Basics
Which of the following can you NOT do inside the functions.php file?
ADirectly edit WordPress core files
BAdd custom shortcodes
CRegister custom post types
DEnqueue scripts and styles
Step-by-Step Solution
Solution:
  1. Step 1: Identify allowed actions in functions.php

    It is common to register post types, add shortcodes, and enqueue scripts here.
  2. Step 2: Understand WordPress core editing rules

    Editing core files directly is not done in functions.php and is discouraged to keep WordPress updates safe.
  3. Final Answer:

    Directly edit WordPress core files -> Option A
  4. Quick Check:

    functions.php cannot edit core files [OK]
Quick Trick: functions.php customizes theme, not core WordPress [OK]
Common Mistakes:
  • Thinking functions.php edits WordPress core
  • Confusing theme customization with core modification

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Wordpress Quizzes