Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAlexisca hall
23,683 PointsWrite an empty function named custom_action(). Then hook your function to the "customize_register" action.
Write an empty function named custom_action(). Then hook your function to the "customize_register" action.
<?php
custom_action;
add_action("customize_register","custom_action");
?>
1 Answer
Brian Hayes
20,986 PointsYou need to actually make custom_action
a function by declaring it.
<?php
function custom_action() {}
otherwise the compiler has no idea what it is or what to do with it.