wp

函数


wp ( $query_vars = '' )
参数
  • (string|array)
    $query_vars
    Default WP_Query arguments.
    Required:
    Default: (empty)
定义位置
  • wp-includes/functions.php
    , line 1329
引入
2.0.0
弃用

Sets up the WordPress query.

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;
	}
}