PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

numbers at the end of filter and action examples

  1. PeterHolt
    Member

    Hi I'm sorry if this is obvious or there's a section of the site that shows basic syntax for gf filters etc but I can't find it after many hours of clicking through.

    In the examples there are ofetn numbers at the end of the decarations i.e.

    "add_action("gform_after_submission_18", "set_post_content", 10, 2)"

    What do the 10 and the 2 corresspond to? and if there is a section on coding syntax and function explanation that covers things like this please feel free to point it out to me, I'll happilly read through it throroughly.

    many thanks Peter

    Posted 11 years ago on Monday June 24, 2013 | Permalink
  2. Richard Vav
    Administrator

    Hi Peter,

    You can find out about the add action hook in the wordpress.org codex.

    10 refers to the priority for the order in which the action should be executed and 2 refers to the number of arguments the function accepts.

    Regards,
    Richard

    Posted 11 years ago on Monday June 24, 2013 | Permalink

This topic has been resolved and has been closed to new replies.