Example 1 — Detect a trackback
Print a note when a trackback arrives.
<?php if ( is_trackback() ) {
echo 'This is a trackback request.';
} ?> How It Works
is_trackback()checks the request type.- It is true only for trackbacks.
- Normal visitors never run the code.

