Skip to content

Instantly share code, notes, and snippets.

@rahularyan
Last active October 26, 2017 03:19
Show Gist options
  • Save rahularyan/2a1c7651d350ebf8fe8252a6f89c1584 to your computer and use it in GitHub Desktop.
Save rahularyan/2a1c7651d350ebf8fe8252a6f89c1584 to your computer and use it in GitHub Desktop.
<?php
// AnsPress upload field.
array(
...
'type' => 'editor',
'editor_args' => array(
// Pass tinyMce options.
),
'upload_options' => array(
// Pass upload field options.
'multiple' => true,
'max_files' => 10,
),
...
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment