Answer the question
In order to leave comments, you need to log in
Overriding a function in a Wordpress child theme?
In the parent theme, the function is simply declared, without the use of function_exists:
if( ! function_exists('theme_function') ){
function theme_function() {
// Код.
}
}
Answer the question
In order to leave comments, you need to log in
1. If the function uses hooks or is attached to hooks, unbind and attach your function.
2. If displayed in a template, redefine the template.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question