Does function definition order matter?

前端 未结 7 1785
滥情空心
滥情空心 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:14

    you can call a function before it's defined, the file is first parsed and then executed.

提交回复
热议问题