<?php
/**
 * Functions which enhance the theme by hooking into WordPress
 *
 * @package BBase_Code
 */

/**
 * Add a pingback url auto-discovery header for single posts, pages, or attachments.
 */
function bbase_code_pingback_header() {
	if ( is_singular() && pings_open() ) {
		printf( '<link rel="pingback" href="%s">', esc_url( get_bloginfo( 'pingback_url' ) ) );
	}
}
add_action( 'wp_head', 'bbase_code_pingback_header' );
