manage_posts_custom_column 最后两个参数
manage_posts_custom_column two last params
我是 wordpress 开发的新手,我想知道这个动作钩子中的最后 2 个参数 (10, 2) 是什么?
add_action( 'manage_posts_custom_column' , 'display_posts_stickiness', 10, 2 );
谢谢
来自 https://developer.wordpress.org/reference/functions/add_action/ :
$priority
(int) (Optional) Used to specify the order in which the functions associated with a particular action are executed. Lower numbers
correspond with earlier execution, and functions with the same
priority are executed in the order in which they were added to the
action.
Default value: 10
$accepted_args
(int) (Optional) The number of arguments the function accepts.
Default value: 1
https://developer.wordpress.org 是转到的地方。大多数函数和钩子都有很好的解释。
我是 wordpress 开发的新手,我想知道这个动作钩子中的最后 2 个参数 (10, 2) 是什么?
add_action( 'manage_posts_custom_column' , 'display_posts_stickiness', 10, 2 );
谢谢
来自 https://developer.wordpress.org/reference/functions/add_action/ :
$priority
(int) (Optional) Used to specify the order in which the functions associated with a particular action are executed. Lower numbers correspond with earlier execution, and functions with the same priority are executed in the order in which they were added to the action.
Default value: 10
$accepted_args
(int) (Optional) The number of arguments the function accepts.
Default value: 1
https://developer.wordpress.org 是转到的地方。大多数函数和钩子都有很好的解释。