kirki icon indicating copy to clipboard operation
kirki copied to clipboard

active_callback with || not, &&

Open BeholdPL opened this issue 5 years ago • 0 comments

Hello

I want to use active_callback but not when first and second value is 'top_bar_contacts', but at least one of them. How can I do that?

'active_callback' => [
        [
            'setting'  => 'header__top_bar__content_left',
            'operator' => '==',
            'value'    => 'top_bar_contacts',
        ],
        [
            'setting'  => 'header__top_bar__content_right',
            'operator' => 'contains',
            'value'    => 'top_bar_contacts',
        ],
    ]

Thanks!

BeholdPL avatar Feb 19 '21 01:02 BeholdPL