Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我很想知道以下代码中的“1”是什么意思?
add_action('thesis_hook_footer','my_widgetized_footer','1');
非常感谢
它告诉你你的功能有多重要。更改它以使您的函数在其他函数之前或之后调用。默认值为 10,因此(例如)将其设置为 5 将使其更早运行,将其设置为 12 将使其稍后运行。