Yummy Docs

Pluggable functions

What is a pluggable function? #

In addition to filters and actions, many functions in the plugin are pluggable. This means that you can replace a certain function with your own. To replace a function you really must know what you are doing, so this is not for beginners!

How to replace a plugin function? #

To replace a function copy the code of the function from the plugin source code. You must use the same name for the function as the original name. Now you can edit the function at it will be used instead of the plugin's function.

Important! As always it is recommended to insert custom functions with a site specific plugin or with a plugin like Code Snippets. If you insert a custom function directly into your theme files, they will be overridden on theme updates!