I do not need some attributes in Link controls. I want to remove the “rel”, target", “aria-label” and “title”
I am using the following code
$this->controls['redirectLink'] = [
'tab' => 'content',
'type' => 'link',
'label' => esc_html__( 'Redirect URL', 'prefix' ),
'exclude' => [
'required' => [ 'ajaxATC', '=', true ]
But above code is not working.
Sorry, that won’t work right now as the
exclude control properly only takes the linkType options into account (e.g.
lightboxVideo, etc.). I’ll make sure that all link sub controls like
rel, etc. are covered in Bricks 1.5. Hope this helps.
That sounds good. Sometimes we do not need all options for the link. So excluding logic would be the best option.