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 register a CPT
To load CSS
To stop direct execution outside WordPress
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 database name
The theme directory
The absolute main plugin file path
The plugin public URL
Hint
Trace the actual hook, data shape, and control flow.
3.
Why use plugin_dir_path(__FILE__)?
Why use plugin_dir_path(__FILE__)?
To flush rewrites
To obtain a filesystem path for includes
To query posts
To generate an asset URL
Hint
Trace the actual hook, data shape, and control flow.
4.
Why use plugin_dir_url(__FILE__)?
Why use plugin_dir_url(__FILE__)?
To register taxonomies
To read post meta
To include PHP files
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
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?
CSS, JavaScript, PHP
Global language pack, local language file, loader fallback
CPT, taxonomy, option
Theme, uploads, database
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 leave the addon inert if core is unavailable
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?
Its argument filters must exist before registration
PHP requires alphabetical loading
It starts Apache
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?
Compose registration modules into runtime
Compile CSS
Render the frontend
Store passwords
Hint
Trace the actual hook, data shape, and control flow.
12.
Why use require_once for modules?
Why use require_once for modules?
To schedule cron
To escape HTML
To avoid duplicate declarations in one request
To cache HTTP
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?
Activation cannot run PHP
The callback must have those functions available in that request
It needs frontend assets
It updates translations only
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?
Flushing creates CPT PHP files
New structures must exist when rules are regenerated
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 authorize users
To translate strings
To prevent fatals when a module did not define a function
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 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 defer setup work to the intended admin lifecycle
Because translation only runs in cron
To enqueue CSS
To change post IDs
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
User passwords
Image compression
Plugin translations
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 remove stale addon permalink rules
To clear only browser cache
To uninstall core
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