Complete the code to add a function to a WordPress action hook.
add_action('init', [1]);
The add_action function requires the name of the function to call when the hook runs. Here, 'my_custom_function' is the correct function name.
Complete the code to apply a filter to modify content in WordPress.
add_filter('the_content', [1]);
The add_filter function needs the name of the function that will modify the content. Here, 'content_filter' is the correct function name.
Fix the error in the code to correctly remove a filter in WordPress.
remove_filter('the_title', [1]);
The function name must be a string when removing a filter. So, 'modify_title' with quotes is correct.
Fill both blanks to add a filter with priority and accepted arguments.
add_filter('the_excerpt', [1], [2]);
The second argument is the function name as a string, and the third argument is the priority number. Here, 'custom_excerpt' and 10 are correct.
Fill all three blanks to add an action hook with function, priority, and accepted arguments.
add_action('wp_footer', [1], [2], [3]);
The function name is 'footer_message', priority is 5, and accepted arguments is 0 because the function takes no arguments.