Warning: This function has been deprecated.

start_wp() WordPress Function

The start_wp() function is used to initialize a WordPress environment. It is called by the wp() function at the start of every request.

start_wp() #

Sets up the WordPress Loop.


Description

Use The Loop instead.


Top ↑

Source

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


Top ↑

Changelog

Changelog
VersionDescription
1.5.0This function has been deprecated.
1.0.1Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More