• 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 7 years, 11 months ago by Robothead.
  • The topic ‘Adding target to href’ is closed to new replies.