Support » Plugins » plugin override

  • Hi,

    I want to make a custom override for the car-demon plugin. What is the best way to do this? Do i have to make a dir in the child theme or?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    You need your override code to be loaded with the rest of WP somehow. Adding code to functions.php of a child theme is one way. Such code could simply include another PHP file from somewhere, like a sub-folder, so your assumption could be correct.

    You can also create a custom plugin. After you activate your plugin, your code will be loaded along with WP for every request.

    Exactly how you override the plugin depends on the plugin. It needs to provide some sort of hook or pluggable function for your code to work with. This would include declaring an extendable public class if that’s the sort of override you’re talking about.

    Hi Thank you,

    I’ve put some extra functions allready in my funtcions.php in the child theme.

    What I want now is making some changes in the theme-files (HTML) .. Isn’t it so to copy for instance template.php into the child theme? Or do I need to make the ‘hooks’? I’ve never worked with hooks before

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘plugin override’ is closed to new replies.