Complete the code to add the plugin name in the header comment.
<?php
/*
Plugin Name: [1]
*/
The plugin header comment must include Plugin Name to identify the plugin.
Complete the code to register an activation hook for the plugin.
register_activation_hook(__FILE__, [1]);The register_activation_hook function needs the name of the activation function as a string.
Fix the error in the activation function declaration.
function [1]() {
// Activation code here
}Function names in PHP cannot contain hyphens or spaces. Use lowercase with underscores.
Fill both blanks to correctly register and define the activation function.
register_activation_hook(__FILE__, [1]); function [2]() { // Activation tasks }
The hook needs the function name as a string, and the function must be defined with the same name.
Fill all three blanks to create a plugin header, activation function, and register the activation hook.
<?php /* Plugin Name: [1] */ function [2]() { // Activation code } register_activation_hook(__FILE__, [3]);
The plugin header needs a name, the activation function must be defined, and the hook must register the function name as a string.