Nuxy
Search…
19. Image Select
1
'image_select' => [
2
'type' => 'image_select',
3
'label' => esc_html__( 'Image Select', 'my-domain' ),
4
'width' => 100,
5
'height' => 100,
6
'value' => 2,
7
'options' => [
8
1 => [
9
'alt' => 'Mountains',
10
'img' => 'https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=100&q=100'
11
],
12
2 => [
13
'alt' => 'Sea',
14
'img' => 'https://images.unsplash.com/photo-1505118380757-91f5f5632de0?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=100&q=100&h=100'
15
],
16
],
17
'submenu' => esc_html__('Image Select', 'my-domain'),
18
'description' => esc_html__( 'Description', 'my-domain' ),
19
]
Copied!
Copy link