-
Notifications
You must be signed in to change notification settings - Fork 1
Image field
Loïc Antignac edited this page May 24, 2022
·
3 revisions
Image field only requests the following informations:
[
'slug' => 'swimming_pool_photo',
'type' => 'image',
'labels' => [
'label' => 'swimming_pool_photo_label',
'help' => '',
],
],
The labels
key contains the keys for retrieving the labels from the labels
array at the root of the entity declaration. Eg:
$declarations[] = [
'entity' => 'Webaxones\Core\Option\SettingGroup',
'labels' => [
'swimming_pool_photo_label' => __( 'Swimming pool photo', 'webaxones-content' ),
],
The image field offers a clickable button on which we can also drag and drop an image that will be uploaded to the media library and displayed below the button.