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 Managed Entity & Template Flow
Time remaining:
0
/ 20 answered
1.
What does lubinikplugin/shortcodes/entity_types contribute?
What does lubinikplugin/shortcodes/entity_types contribute?
Rewrite SQL
A language file
An accommodation type mapped to its CPT
Rendered HTML
Hint
Trace the actual hook, data shape, and control flow.
2.
How must that filter treat types from other addons?
How must that filter treat types from other addons?
Turn them into terms
Replace all of them
Merge with the existing array
Delete unknown keys
Hint
Trace the actual hook, data shape, and control flow.
3.
Why does the entities filter accept two arguments?
Why does the entities filter accept two arguments?
All filters require two
It runs twice
It needs existing entities and requested entity type
It has two priorities
Hint
Trace the actual hook, data shape, and control flow.
4.
What happens for a non-accommodation entity type?
What happens for a non-accommodation entity type?
The incoming value is returned unchanged
BnB posts are queried
An empty result is forced
A fatal is thrown
Hint
Trace the actual hook, data shape, and control flow.
5.
What does the selector query?
What does the selector query?
Only attachments
All published accommodations ordered by title
All revisions
All users
Hint
Trace the actual hook, data shape, and control flow.
6.
Why set suppress_filters to false?
Why set suppress_filters to false?
To let normal integrations adapt the query
To reveal private content
To disable caching
To bypass SQL preparation
Hint
Trace the actual hook, data shape, and control flow.
7.
Which accommodations are excluded by the meta_query?
Which accommodations are excluded by the meta_query?
Those explicitly marked as general accommodation
Those with titles
All published posts
Those without the meta key
Hint
Trace the actual hook, data shape, and control flow.
8.
What does the selector return?
What does the selector return?
Filesystem paths
Raw HTML
A map of post IDs to titles
SQL fragments
Hint
Trace the actual hook, data shape, and control flow.
9.
Which filter supplies managed template candidates?
Which filter supplies managed template candidates?
login_redirect
lubinikplugin/shortcodes/templates
the_content
pre_get_posts
Hint
Trace the actual hook, data shape, and control flow.
10.
Where are BnB accommodation packages discovered?
Where are BnB accommodation packages discovered?
The options table
WordPress core
templates/accommodation/* directories
uploads only
Hint
Trace the actual hook, data shape, and control flow.
11.
Why use GLOB_ONLYDIR?
Why use GLOB_ONLYDIR?
It sorts posts
It validates nonces
It registers hooks
Only directories represent packages
Hint
Trace the actual hook, data shape, and control flow.
12.
How is the template slug derived?
How is the template slug derived?
Database prefix
Locale
Current username
basename of its directory
Hint
Trace the actual hook, data shape, and control flow.
13.
What is the fallback display label?
What is the fallback display label?
The absolute path
A random UUID
The CPT label
Hyphens become spaces and words are title-cased
Hint
Trace the actual hook, data shape, and control flow.
14.
What must template meta.php return?
What must template meta.php return?
A database resource
Only echoed HTML
An array of metadata
A WP_User
Hint
Trace the actual hook, data shape, and control flow.
15.
Where is a local managed layout stored?
Where is a local managed layout stored?
_lubinikplugin_page_content_layout post meta
style.css
A term description
wp-config.php
Hint
Trace the actual hook, data shape, and control flow.
16.
Which keys form the stored layout contract?
Which keys form the stored layout contract?
enabled_shortcodes, default_source_id, shortcode_settings
host, port, database
username, password, role
title, slug, author
Hint
Trace the actual hook, data shape, and control flow.
17.
What happens with no local layout?
What happens with no local layout?
A random entity is copied
The addon deactivates
The post is deleted
Entity-type global options and registered shortcode settings provide defaults
Hint
Trace the actual hook, data shape, and control flow.
18.
Why validate entity ID against entity type?
Why validate entity ID against entity type?
To prevent reading or writing layout data on the wrong post type
To seed terms
To compress assets
To load translations
Hint
Trace the actual hook, data shape, and control flow.
19.
Why does save_entity_layout consume six filter arguments?
Why does save_entity_layout consume six filter arguments?
It needs chain result, type, ID, settings, enabled order, and source ID
PHP requires six
Its priority is six
It creates six posts
Hint
Trace the actual hook, data shape, and control flow.
20.
Why return the incoming result if update_post_meta fails?
Why return the incoming result if update_post_meta fails?
To hide all errors
To retry SQL automatically
To preserve the cooperative filter chain for another handler
To activate the theme
Hint
Trace the actual hook, data shape, and control flow.
Submit my answers
Post navigation
Previous:
Lubinik Addon Bootstrap & Runtime
Next:
Lubinik Shortcode Registry, Assets & Components