Title: Adding target to href
Last modified: April 11, 2017

---

# Adding target to href

 *  [Robothead](https://wordpress.org/support/users/toktor/)
 * (@toktor)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/adding-target-to-href/)
 * Hi
    Is it possible to add “target” field to anchor element? Our terms are quite
   long, we want to give people short version in checkout and link that would open
   in a new window, where full terms are written. Currently sanitation removes target
   =”_blank”…
 * It would look like this:
    edd-terms-per-product.php L72
 *  public function sanitize_terms_save( $data ) {
    return wp_kses( $data, array(‘
   a’ => array( ‘href’ => array(), ‘title’ => array(), ‘target’ => array() ), ‘br’
   => array(), ’em’ => array(), ‘strong’ => array() ) ); }
    -  This topic was modified 9 years, 1 month ago by [Robothead](https://wordpress.org/support/users/toktor/).

The topic ‘Adding target to href’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/edd-terms-per-product.svg)
 * [Easy Digital Downloads - Terms Per Product](https://wordpress.org/plugins/edd-terms-per-product/)
 * [Support Threads](https://wordpress.org/support/plugin/edd-terms-per-product/)
 * [Active Topics](https://wordpress.org/support/plugin/edd-terms-per-product/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/edd-terms-per-product/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/edd-terms-per-product/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Robothead](https://wordpress.org/support/users/toktor/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/adding-target-to-href/)
 * Status: not a support question