Complete the code to define the main WordPress configuration file name.
<?php
// The main configuration file is named [1]The main configuration file for WordPress is wp-config.php. It contains database settings and other important configurations.
Complete the code to show how WordPress loads plugins from the {{BLANK_1}} directory.
<?php $plugin_dir = WP_CONTENT_DIR . '/[1]'; // Plugins are loaded from this directory
WordPress loads plugins from the plugins directory inside the content folder.
Fix the error in the code to correctly include the WordPress core file.
<?php require_once(ABSPATH . '[1]');
The core WordPress settings file to include is wp-settings.php, which sets up the environment.
Fill both blanks to create a WordPress hook that runs a function on initialization.
add_action('[1]', '[2]'); function my_init_function() { // Initialization code here }
The init hook runs early in WordPress loading. The function name must match the callback.
Fill all three blanks to register a custom post type in WordPress.
function register_[1]_post_type() { register_post_type('[2]', [ 'labels' => ['name' => '[3]'], 'public' => true, ]); } add_action('init', 'register_[1]_post_type');
This code registers a custom post type called 'book' with the label 'Books'. The function and post type names must match.