WordPress开发者和主题制作者的搜索引擎



wp ›

Since2.0.0
已弃用n/a
wp ( $query_vars = '' )
参数:
  • (string|array) $query_vars Default WP_Query arguments.
    Required: No
    默认: (empty)
定义在:
文档:

Set up the WordPress query.



Related Functions: wp_rss, wp_die

源码

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