Support » Plugin: Attachments » Limiting attachments number

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jonathan Christopher


    Hi yes you can set a limit when setting up your Instance, I’ll be sure to update the documentation. It’ll look something like this:

    'limit' => 1

    in your $args array when setting up the instance.

    Thanks, works like a charm!

    Only issue (minor) I am facing in that then when you have already an attachment it does not disable the “add” button but if you click on it, it will display a “currently limited to 1” message, which I can’t find it in the .pot file to localize it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Limiting attachments number’ is closed to new replies.