Support » Plugin: Code Snippets » Adding snippets to functions for plug-ins

  • Resolved totallyminimad

    (@totallyminimad)


    hi,
    i’ve got code i need to enter inside a plug-in functions.php file.
    Can code snippets do this? If so, how?
    Many thanks
    minimad

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    You should be able to add a new snippet and use that code, instead of needing to enter it into any theme or plugin files.

    If you’re able to tell me a little bit more about the sort of code you need to use, I can provide some more detail.

    Thread Starter totallyminimad

    (@totallyminimad)

    thanks.
    its for a site i am working on where some of the tweaks will be for the function files within the woocommerce folder. From what i can see the code snippet plug-in works on the themes function.php file only?
    cheers
    minimad

    Plugin Author Shea Bunge

    (@bungeshea)

    It doesn’t really matter where you would put the code otherwise, Code Snippets is independent of themes and other plugins, so should work with all properly formed PHP code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding snippets to functions for plug-ins’ is closed to new replies.