我正在阅读插件的源代码(gallery to slideshow插件),以使其表现得像我想要的一样,并且它正在使用一个动作
add_action( \'the_posts\', array( &$this, \'have_gallery\' ), 10, 1 );
 我想知道这些额外的参数(10,1)意味着什么,但我找不到该操作的文档。请帮忙
 
                
                
                SO网友:Wordpressor
                这是相当add_action() 相关的
add_action( 
   \'the_posts\', //$tag
   array( &$this, \'have_gallery\' ), //$function_to_add
   10, //$priority - run priority, when to execute given action 
   1 //$accepted_args - number of accepted arguments, one in this case
);
 10表示默认运行优先级,1表示此函数采用的一个参数。