Skip to content
Menu
Home
Practice
All Exams
Custom Exam
Study
Flashcards
Daily Study
Study Plan
Saved Questions
Progress
My Results
Weekly Goals
Topic Progress
Account
My Personal Info
My Learning Data
Personal Notes
Training mode
Lubinik Addon Bootstrap & Runtime
Time remaining:
0
/ 20 answered
1.
Why does the bootstrap guard ABSPATH?
Why does the bootstrap guard ABSPATH?
To stop direct execution outside WordPress
To load CSS
To register a CPT
To select a locale
Hint
Trace the actual hook, data shape, and control flow.
2.
What does LUBINIK_BNB_ADDON_FILE store?
What does LUBINIK_BNB_ADDON_FILE store?
The plugin public URL
The database name
The theme directory
The absolute main plugin file path
Hint
Trace the actual hook, data shape, and control flow.
3.
Why use plugin_dir_path(__FILE__)?
Why use plugin_dir_path(__FILE__)?
To obtain a filesystem path for includes
To generate an asset URL
To flush rewrites
To query posts
Hint
Trace the actual hook, data shape, and control flow.
4.
Why use plugin_dir_url(__FILE__)?
Why use plugin_dir_url(__FILE__)?
To include PHP files
To read post meta
To register taxonomies
To obtain a public base URL for assets
Hint
Trace the actual hook, data shape, and control flow.
5.
When does the addon begin loading its text domain?
When does the addon begin loading its text domain?
template_redirect
plugins_loaded at priority 1
wp_footer
save_post at priority 10
Hint
Trace the actual hook, data shape, and control flow.
6.
How is the MO locale selected?
How is the MO locale selected?
determine_locale() filtered by plugin_locale
From the CPT slug
It is always it_IT
From post meta
Hint
Trace the actual hook, data shape, and control flow.
7.
What is the MO lookup order?
What is the MO lookup order?
Global language pack, local language file, loader fallback
CPT, taxonomy, option
Theme, uploads, database
CSS, JavaScript, PHP
Hint
Trace the actual hook, data shape, and control flow.
8.
Why check LUBINIK_PLUGIN_DIR inside plugins_loaded?
Why check LUBINIK_PLUGIN_DIR inside plugins_loaded?
To validate MySQL
To find the active child theme
To leave the addon inert if core is unavailable
To register a user
Hint
Trace the actual hook, data shape, and control flow.
9.
Why load the constants class first?
Why load the constants class first?
Constants only work during activation
Later modules need canonical domain identifiers
It renders templates
It enqueues assets
Hint
Trace the actual hook, data shape, and control flow.
10.
Why load hooks-cpt.php before CPT loaders?
Why load hooks-cpt.php before CPT loaders?
PHP requires alphabetical loading
It starts Apache
Its argument filters must exist before registration
It creates terms
Hint
Trace the actual hook, data shape, and control flow.
11.
What do post-types/load.php and taxonomies/load.php do?
What do post-types/load.php and taxonomies/load.php do?
Render the frontend
Store passwords
Compile CSS
Compose registration modules into runtime
Hint
Trace the actual hook, data shape, and control flow.
12.
Why use require_once for modules?
Why use require_once for modules?
To escape HTML
To cache HTTP
To schedule cron
To avoid duplicate declarations in one request
Hint
Trace the actual hook, data shape, and control flow.
13.
Why require registration files inside the activation callback?
Why require registration files inside the activation callback?
It needs frontend assets
Activation cannot run PHP
It updates translations only
The callback must have those functions available in that request
Hint
Trace the actual hook, data shape, and control flow.
14.
Why register CPTs and taxonomies before flushing rewrites?
Why register CPTs and taxonomies before flushing rewrites?
Taxonomies require CSS
Order changes roles
New structures must exist when rules are regenerated
Flushing creates CPT PHP files
Hint
Trace the actual hook, data shape, and control flow.
15.
Why check function_exists before activation calls?
Why check function_exists before activation calls?
To authorize users
To translate strings
To prevent fatals when a module did not define a function
To sanitize input
Hint
Trace the actual hook, data shape, and control flow.
16.
When are default amenities, services, and types seeded?
When are default amenities, services, and types seeded?
Every frontend request
Inside templates
During deactivation
During activation after taxonomy registration
Hint
Trace the actual hook, data shape, and control flow.
17.
Why respect deleted-term tracking during seeding?
Why respect deleted-term tracking during seeding?
To avoid recreating administrator-deleted defaults
To create archives
To escape labels
To make terms private
Hint
Trace the actual hook, data shape, and control flow.
18.
Why schedule taxonomy auto-translation?
Why schedule taxonomy auto-translation?
To defer setup work to the intended admin lifecycle
To enqueue CSS
To change post IDs
Because translation only runs in cron
Hint
Trace the actual hook, data shape, and control flow.
19.
What is the activation flush intended to make work immediately?
What is the activation flush intended to make work immediately?
CPT single and archive permalinks
Plugin translations
User passwords
Image compression
Hint
Trace the actual hook, data shape, and control flow.
20.
Why flush again on deactivation?
Why flush again on deactivation?
To delete addon posts
To uninstall core
To clear only browser cache
To remove stale addon permalink rules
Hint
Trace the actual hook, data shape, and control flow.
Submit my answers
Post navigation
Previous:
Lubinik Core Plugin & Parent Theme
Next:
Lubinik Managed Entity & Template Flow