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 L72public function sanitize_terms_save( $data ) {
return wp_kses( $data, array(
‘a’ => array(
‘href’ => array(),
‘title’ => array(),
‘target’ => array()
),
‘br’ => array(),
’em’ => array(),
‘strong’ => array()
)
);
}
- The topic ‘Adding target to href’ is closed to new replies.