Support » Plugins » Hook execution order

  • I am searching for a document that clearly defines (or some 1 that knows) the execution order of the wordpress actions, filters and shortcode hooks.

    I am thinking about writing a plugin that uses shortcode to format some content but insert some stuff in the web page header depending on the attributes of the shortcode.

    I was wondering which hooks i should be using to be able to first check the shortcode attributes and then write the content in the page <head/>.

Viewing 1 replies (of 1 total)
  • use the following to add data to the header:

    add_action('wp_head', 'my_function');
    
    function my_function(){
        //function details here
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Hook execution order’ is closed to new replies.