WordPress.org

Ready to get started?Download WordPress

Forums

Hook execution order (2 posts)

  1. bigtimery3k
    Member
    Posted 5 years ago #

    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/>.

  2. johnkolbert
    Member
    Posted 5 years ago #

    use the following to add data to the header:

    add_action('wp_head', 'my_function');
    
    function my_function(){
        //function details here
    }

Topic Closed

This topic has been closed to new replies.

About this Topic