Skip to content

Instantly share code, notes, and snippets.

@dbjpanda
Created November 15, 2019 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbjpanda/376f2a2eef4696920ac0f759311c8f05 to your computer and use it in GitHub Desktop.
Save dbjpanda/376f2a2eef4696920ac0f759311c8f05 to your computer and use it in GitHub Desktop.
$widget->add_control(
'ap_google_sheet_list',
[
'label' => __( 'Google Sheet', 'elementor-pro' ),
'type' => Controls_Manager::SELECT,
'options' => [],
'render_type' => 'none',
'conditions' => [
'relation' => 'or',
'terms' => [
[
'name' => 'ap_google_sheet_credentials_source',
'operator' => '=',
'value' => 'default',
],
[
'name' => 'ap_google_sheet_credentials',
'operator' => '!==',
'value' => '',
],
],
],
]
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment