do_all_trackbacks() WordPress Function

The do_all_trackbacks() function in WordPress is responsible for handling all trackbacks and pingbacks on a given page. This function will first check to see if trackbacks are enabled for the current post, and then proceed to loop through all of the trackbacks and pingbacks for the post and display them accordingly.

do_all_trackbacks() #

Performs all trackbacks.


Source

File: wp-includes/comment.php

function do_all_trackbacks() {
	$trackbacks = get_posts(
		array(
			'post_type'        => get_post_types(),
			'suppress_filters' => false,
			'nopaging'         => true,
			'meta_key'         => '_trackbackme',
			'fields'           => 'ids',
		)
	);

	foreach ( $trackbacks as $trackback ) {
		delete_post_meta( $trackback, '_trackbackme' );
		do_trackbacks( $trackback );
	}
}


Top ↑

Changelog

Changelog
VersionDescription
5.6.0Introduced.

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
Show More