I am reading the source of a plugin (gallery to slideshow plugin) to make it behave like i want and it is using an action
add_action( 'the_posts', array( &$this, 'have_gallery' ), 10, 1 );
I want to know what those extra parameters (10,1) mean but i cant find the documentation of this action. Please help
those parameters aren’t unique to the_posts, they’re parameters for the add_action() function
the 10 is just the default priority and 1 is the default number of accepted arguments. since they’re both default, you don’t really need either.
http://codex.wordpress.org/Function_Reference/add_action
This is rather add_action() related.
10 means default run priority and 1 stands for one argument that this function takes.