• I tried looking in documentations and descriptions and couldn’t find anything.

    Are front end ones only the theme functions.php and are backend the main wordpress functions.php? Or does this free plugin only work on the theme functions.php?

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

    (@bungeshea)

    Hi @rhenium3,

    We only use the term ‘functions.php’ as an example for how snippets work. They are not actually added to any file, instead they are executed separately as if they were in one of those files.

    The difference between the front-end and back-end scopes is that the back-end snippets only run in the WordPress administration dashboard, and the front-end snippets run everywhere else.

    Thread Starter EndlessRange

    (@rhenium3)

    Hi Shea,
    I didn’t set up this plugin. How do I know if they are functions that should go into a child theme or a plugin? Is there a rule of thumb? We are moving away from editing via the dashboard.

    Plugin Author Shea Bunge

    (@bungeshea)

    Hi @rhenium3,

    Regardless of whether the functions snippet is intended for a child theme or a plugin, they can be added as a snippet in this plugin.

    The only key distinction is:

    • Functions snippet: PHP code, performs an action (normally used in plugins or functions.php files)
    • Content snippet: mixed HTML and PHP code, produces output (can be used anywhere)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Functions.php or theme functions.php’ is closed to new replies.