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 select a locale
To load CSS
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 plugin public URL
The absolute main plugin file path
The database name
The theme directory
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 query posts
To generate an asset URL
To obtain a filesystem path for includes
Hint
Trace the actual hook, data shape, and control flow.
4.
Why use plugin_dir_url(__FILE__)?
Why use plugin_dir_url(__FILE__)?
To read post meta
To register taxonomies
To obtain a public base URL for assets
To include PHP files
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?
save_post at priority 10
plugins_loaded at priority 1
wp_footer
template_redirect
Hint
Trace the actual hook, data shape, and control flow.
6.
How is the MO locale selected?
How is the MO locale selected?
From post meta
It is always it_IT
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?
CPT, taxonomy, option
Global language pack, local language file, loader fallback
CSS, JavaScript, PHP
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 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?
Later modules need canonical domain identifiers
It enqueues assets
Constants only work during activation
It renders templates
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
Its argument filters must exist before registration
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 cache HTTP
To avoid duplicate declarations in one request
To escape HTML
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
It updates translations only
The callback must have those functions available in that request
It needs frontend assets
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
Order changes roles
Taxonomies require CSS
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 sanitize input
To translate strings
To authorize users
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?
Inside templates
During deactivation
During activation after taxonomy registration
Every frontend request
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 escape labels
To avoid recreating administrator-deleted defaults
To create archives
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 enqueue CSS
Because translation only runs in cron
To change post IDs
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?
Plugin translations
User passwords
CPT single and archive permalinks
Image compression
Hint
Trace the actual hook, data shape, and control flow.
20.
Why flush again on deactivation?
Why flush again on deactivation?
To remove stale addon permalink rules
To clear only browser cache
To delete addon posts
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