WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] What $query_context is? (4 posts)

  1. eXalted
    Member
    Posted 1 year ago #

    I saw the following variables in some themes:

    global $wp_query, $query_context;
    and
    $query_context->context

    I know what is the $wp_query but what is $query_context? I searched everywhere but couldn't find any information about this variable.

    I will greatly appreciate if someone explain it to me.

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    I cannot find that variable/object in WordPress 3.5.1 core. Perhaps it's a theme specific object?

  3. eXalted
    Member
    Posted 1 year ago #

    Oh, you are right. I noticed just now that it's a variable for a custom object in a specific theme.

    Thanks and sorry for the spammy thread.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    No problem. It was a valid question. :-)

Topic Closed

This topic has been closed to new replies.

About this Topic