How to override function in child theme

I am not sure if the function in the functions_custom.php that you wants to override is a pluggable functions like below:

if ( ! function_exists ( 'function_name' ) ) {
    function function_name() {
        // Function Code
    }
}

If it is pluggable function then you can simply write function with same name in your child theme and WordPress will run the Child Theme function first.

Leave a Comment