if (!function_exists) please

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8369 Reply

    Allen Moore

    Please wrap your theme functions in if(!function_exists) statements. It makes it much easier for updating the theme if we’ve made small changes to functions in a child theme. Thanks! Allen.

    #8370 Reply

    Ron
    Keymaster

    If you have a functionality you want to override you can always inquire here or on the WordPress forums. There’s probably a better way to do what you want without having to function_exists all of the theme’s functions. Anyway, I think my theme functions are incorporated by actions and filters that it covers most of a user’s need to modify. Could you give an example scenario where it would be difficult for you to do an edit without a function_exists statement?

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: if (!function_exists) please
Your information: