function edd_checkout_meta_tags() {
$pages = array();
$pages[] = edd_get_option( 'success_page' );
$pages[] = edd_get_option( 'failure_page' );
$pages[] = edd_get_option( 'purchase_history_page' );
if( ! edd_is_checkout() && ! is_page( $pages ) ) {
return;
}
echo '<meta name="robots" content="noindex,nofollow" />' . "\n";
}
add_action( 'wp_head', 'edd_checkout_meta_tags' );