where is the documentation for add_action() parameters?

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

Related posts

Leave a Reply

2 comments

  1. This is rather add_action() related.

    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 means default run priority and 1 stands for one argument that this function takes.