// Date.
$this->add_control(
'date',
array(
'type' => Controls_Manager::SWITCHER,
'label' => esc_html__( 'Publish Date', 'wordpress' ),
'default' => '',
'label_on' => esc_html__( 'Yes', 'wordpress' ),
'label_off' => esc_html__( 'No', 'wordpress' ),
'return_value' => 'yes',
)
);
// Author.
$this->add_control(
'author',
array(
'type' => Controls_Manager::SWITCHER,
'label' => esc_html__( 'Author', 'wordpress' ),
'default' => '',
'label_on' => esc_html__( 'Yes', 'wordpress' ),
'label_off' => esc_html__( 'No', 'wordpress' ),
'return_value' => 'yes',
)
);
// Typography.
$this->add_group_control(
Group_Control_Typography::get_type(),
array(
'name' => 'post_meta',
'label' => __( 'Typography', 'wordpress' ),
'scheme' => Scheme_Typography::TYPOGRAPHY_1,
'selector' => '{{WRAPPER}} .meta-item',
'conditions' => [
'relation' => 'or',
'terms' => [
[
'name' => 'date',
'operator' => '===',
'value' => 'yes',
],
[
'name' => 'author',
'operator' => '===',
'value' => 'yes',
],
],
],
)
);
Hi, the below code not working with Typography control
// Typography alway show although
dateandauthorswitchoffCan you check it?