WordPress.org

Ready to get started?Download WordPress

Forums

help with wp() function (2 posts)

  1. jsherk
    Member
    Posted 6 years ago #

    Does anybody know the format for the wp() function? What variables can be passed to it, and what comes back? I can't find any documentation that tells me anything about it.

    Thanks

  2. nathanrice
    Member
    Posted 6 years ago #

    from the /wp-includes/functions.php file:


    function wp( $query_vars = '' ) {
    global $wp, $wp_query, $wp_the_query;
    $wp->main( $query_vars );

    if( !isset($wp_the_query) )
    $wp_the_query = $wp_query;
    }

    In what context have you seen it used, or are wanting to use it?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.