• Resolved swissdrago

    (@swissdrago)


    Hi there

    Sorry if this is a stupid question ??

    Next to changes in functions.php (done via code snippet), I also have some slight changes in email-order-details.php, now I wonder if I could do these using code snippets too instead of doing it directly in email-order-details.php.

    Or is code snippets only working for changes of functions.php?

    Thanks a lot for your answer

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

    (@bungeshea)

    Hi @swissdrago,

    Code Snippets doesn’t work by injecting code into your site files – instead, it runs as if the code was in functions.php, but in reality it isn’t actually in that file, specifically.

    What this means is that, no, there’s no way of directly modifying the code in that file with Code Snippets. However, if that file makes use of WordPress action and filter hooks, then you absolutely can change and control its functionality with this plugin.

    I don’t know which plugin or theme this email-order-details.php file belongs to, but I would recommend checking their documentation for any mention of action or filter hooks you might be able to utilise.

Viewing 1 replies (of 1 total)
  • The topic ‘Code snippets only for functions.php or also for other php’s?’ is closed to new replies.