How to override a function

  1. 5 years ago
    Edited 5 years ago by *DonS*

    How to override a function which is located in ../core/lib/functions.general.php ?

    I want to replace the "function slug ($string)" by plugin

  2. Edit it =)
    -image-

  3. I do not want to change "functions.general.php" any esotalk update.
    I am looking for a simplest solution to handle this.

  4. @*DonS* I do not want to change "functions.general.php" any esotalk update.
    I am looking for a simplest solution to handle this.

    In fact, I think esotalk doesn't provide ability to use plugin mechanism for functions.general.php. I think functions are not even methods of some class? So your plugin will be copy of functions.general.php file which replaces the original one... Or in another words you have to edit it =)

  5. @inliquid In fact, I think esotalk doesn't provide ability to use plugin mechanism for functions.general.php. I think functions are not even methods of some class? So your plugin will be copy of functions.general.php file which replaces the original one... Or in another words you have to edit it =)

    Thank you for the feedback. OK, I edit the file until there is a better solution. :)

 

or Sign Up to reply!