Search code examples
phpfunctionunlink

Unlink function in php


Is it possible to erase user-defined function?

My CMS has one function, which I want to update with additions.

Trying to add some code to theme's code, that would make my code work only when this theme is switched on.


Solution

  • Try rename_function() to rename the function you want to override to something else and then write the function under the original name.