Support » Plugin: Simple History – user activity log, audit tool » Where exactly to add PHP code from Examples page

  • Resolved NW1


    I really like this plugin, and want to add some extra functionality using the example code snippets here:

    However, my technical knowledge is limited, and so I’m not sure where exactly to insert these snippets. I tried putting one into the plugin’s functions.php and it caused the whole site to break, so I guess that wasn’t the right place!

    Can anyone tell me which file to put them into?

    Many thanks 🙂

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter NW1


    Is there anybody who can help with this query?

    I would really appreciate it!

    Thanks 🙂

    Plugin Author eskapism


    If you have a custom theme built a good place would probably be to add the code to the theme functions.php file. It will however be overwritten on the next theme update, unless you are using your own theme or child theme. Another solution would be to create a new plugin, just to add the code, but that’s also a bit cumbersome.

    Using the code from the examples.php-file does unfortunately require some technical knowledge and exactly how you add the examples code may be different for each site. Sorry that I can’t help you any more that this.

    Thread Starter NW1


    Thank you. I put the code into the functions.php of the child theme and it works perfectly there 👍

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.