WordPress.org

Support

Support » How-To and Troubleshooting » help with wp() function

help with wp() function

  • 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

Viewing 1 replies (of 1 total)
  • 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?

Viewing 1 replies (of 1 total)
  • The topic ‘help with wp() function’ is closed to new replies.
Skip to toolbar