Created
October 26, 2017 03:59
-
-
Save rahularyan/e2362619d24e7a5ec2f892baddd61ea5 to your computer and use it in GitHub Desktop.
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 | |
// AnsPress repeatable field. | |
array( | |
... | |
'type' => 'repeatable', | |
'fields' => array( | |
'image-title' => array( | |
'label' => __( 'Image title' ), | |
'type' => 'input', | |
), | |
'image' => array( | |
'label' => __( 'Image' ), | |
'type' => 'upload', | |
'upload_options' => array( | |
'multiple' => false, | |
'allowed_mimes' => array( | |
'jpg|jpeg' => 'image/jpeg', | |
'gif' => 'image/gif', | |
'png' => 'image/png', | |
), | |
), | |
), | |
'image-description' => array( | |
'label' => __( 'Image Description' ), | |
'type' => 'textarea', | |
), | |
), | |
... | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment