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 load CSS
To select a locale
To stop direct execution outside WordPress
To register a CPT
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 absolute main plugin file path
The plugin public URL
The theme directory
The database name
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 query posts
To flush rewrites
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 obtain a public base URL for assets
To read post meta
To register taxonomies
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
wp_footer
save_post at priority 10
plugins_loaded at priority 1
Hint
Trace the actual hook, data shape, and control flow.
6.
How is the MO locale selected?
How is the MO locale selected?
It is always it_IT
From post meta
From the CPT slug
determine_locale() filtered by plugin_locale
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 leave the addon inert if core is unavailable
To validate MySQL
To find the active child theme
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?
Later modules need canonical domain identifiers
Constants only work during activation
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?
It creates terms
It starts Apache
PHP requires alphabetical loading
Its argument filters must exist before registration
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 schedule cron
To cache HTTP
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?
New structures must exist when rules are regenerated
Flushing creates CPT PHP files
Order changes roles
Taxonomies require CSS
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 sanitize input
To prevent fatals when a module did not define a function
To translate strings
To authorize users
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
During deactivation
Inside templates
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 make terms private
To create archives
To avoid recreating administrator-deleted defaults
To escape labels
Hint
Trace the actual hook, data shape, and control flow.
18.
Why schedule taxonomy auto-translation?
Why schedule taxonomy auto-translation?
To change post IDs
Because translation only runs in cron
To enqueue CSS
To defer setup work to the intended admin lifecycle
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?
Image compression
Plugin translations
User passwords
CPT single and archive permalinks
Hint
Trace the actual hook, data shape, and control flow.
20.
Why flush again on deactivation?
Why flush again on deactivation?
To uninstall core
To remove stale addon permalink rules
To delete addon posts
To clear only browser cache
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