is_trackback
Is the query for a trackback endpoint call?.
Description
is_trackback();
Usage
if ( !function_exists( 'is_trackback' ) ) { require_once ABSPATH . WPINC . '/query.php'; } // NOTICE! Understand what this does before running. $result = is_trackback();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/query.php
- function is_trackback() {
- global $wp_query;
- if ( ! isset( $wp_query ) ) {
- _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
- return false;
- }
- return $wp_query->is_trackback();
- }