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 ); } }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |