Support » Plugin: Easy Digital Downloads - Terms Per Product » 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 3 years, 4 months ago by toktor.
  • The topic ‘Adding target to href’ is closed to new replies.