-
-
Save humayunahmed8/f45cc9696128ca9b54ec5f5ce8d24e60 to your computer and use it in GitHub Desktop.
Dropdown attribute with default value in WPBakery Visual Composer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Visual Composer DropDown Item Example in Right Way | |
* Dropdown attribute with default value in WPBakery Visual Composer | |
* | |
* @package VC_Dropdown | |
* @author Mahfuz <asrmahfuz8@gmail.com> | |
*/ | |
vc_map(array( | |
"name" => __( "VC Dropdown", 'textdomain' ), | |
"description" => __( "VC Dropdown items example in right way!!!", 'textdomain' ), | |
"base" => 'base_name', | |
"controls" => "full", | |
"category" => __( 'category_name', 'textdomain' ), | |
"params" => array( | |
array( | |
'type' => 'dropdown', | |
'heading' => __( 'Dropdown Items', 'textdomain' ), | |
'value' => array( | |
__( 'Item One', 'textdomain' ) => '1', | |
__( 'Item Two', 'textdomain' ) => '2', | |
__( 'Item Three', 'textdomain' ) => '3', | |
__( 'Item Four', 'textdomain' ) => '4' | |
), | |
'description' => __( 'Upload member photo.', 'textdomain' ), | |
'param_name' => 'dropdown_items' | |
) | |
) | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment