Does function definition order matter?

前端 未结 7 1845
滥情空心
滥情空心 2021-01-17 07:33

In the script below, does the order in which items are declared matter?

For example, if the add_action points to a function that has not yet been defined? Does it ma

7条回答
  •  独厮守ぢ
    2021-01-17 08:06

    It does not matter, as long as it is declared somewhere on the page.

    as seen here:

    http://codepad.org/aYbO7TYh

提交回复
热议问题