ThemeShaper Forums » Thematic

[closed]

function and action with number at end

(3 posts)
  • Started 7 years ago by pgb
  • Latest reply from pgb
  • This topic is not resolved
  1. pgb
    Member

    Where can I find out more information on functions in Thematic, with special reference to the number at the end, (please see code below)?. Why is it numbered? Is it significant? I'm trying to insert vertical navigation connecting to pages into the right of the header.

    Apologies for such a fundamental question!

    function remove_thematic_actions() {
        remove_action('thematic_header','thematic_access',9);
    Posted 7 years ago #
  2. that number is called the 'priority'. basically if you are attaching multiple files to the same hook the priority decides the order they get executed in.... like a traffic cop. w/o the priority things get called in whatever order the functions are found in (i think)

    Posted 7 years ago #
  3. pgb
    Member

    Thanks helgatheviking. I find if I change the number the text appears in a different place! Would you recommend any sites where I can learn more?

    Posted 7 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.