start_wp() - WordPress 函数参考中文文档

返回介绍

start_wp()

发布于 2017-09-11 字数 1274 浏览 908 评论 0

Warning: This function has been deprecated.

start_wp()

Sets up the WordPress Loop.


描述

Use The Loop instead.


源代码

File: wp-includes/deprecated.php

function start_wp() {
	global $wp_query;

	_deprecated_function( __FUNCTION__, '1.5.0', __('new WordPress Loop') );

	// Since the old style loop is being used, advance the query iterator here.
	$wp_query->next_post();

	setup_postdata( get_post() );
}

更新日志

Version 描述
1.5.0 This function has been deprecated.
1.0.1 Introduced.

相关函数

Uses

  • wp-includes/l10n.php:
    __()
  • wp-includes/class-wp-query.php:
    WP_Query::next_post()
  • wp-includes/query.php:
    setup_postdata()
  • wp-includes/functions.php:
    _deprecated_function()
  • wp-includes/post.php:
    get_post()

User Contributed Notes

上一篇:start_post_rel_link()

下一篇:status_header()

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!