function_exists call in function.php

That twentyeleven_setup function, and others like it, are pluggable – meaning that they can be overridden by a child theme. The child theme’s version of a function with that same name will be parsed first, so the parent theme’s version will not be run at all.

In TwentyTwelve some functions are not pluggable, but instead are attached to hooks. By attaching alternative functions to those same hooks in a child theme, you can override the parent theme function’s internal logic, without rebuilding the whole function.

Leave a Comment