Training mode
Time remaining:
0 / 16 answered
You want to call register_post_type() at the point recommended by WordPress.
register_post_type()
This hook runs after WordPress has loaded but before the main request is processed.
Choose the conventional WordPress lifecycle hook.
It is the same common lifecycle point used for CPT registration.
Choose the approach that avoids unnecessary work on normal requests.
Flushing is expensive and registration must happen first.
Look at how the Plugins screen discovers files.
A user may deactivate only to debug temporarily.
Several plugins share the same runtime.
Think schema and access rules.
The content filter decides where the result belongs.
ABSPATH is defined by WordPress.
Prefer explicit inputs and APIs.
Administrators need a recoverable state.
Think register_setting().
It is commonly used during versioned migrations.
Activation is not guaranteed to run during every deployment pattern.
It is part of internationalization calls.
It is the non-AJAX administrative form endpoint.