BuddyDev

Limit BuddyPress User and Group Cover file size

Continuing from what I wrote yesterday about limiting the BuddyPress  User and Group Avatar file size(You can limit the file size), Let us repeat the same for the cover.

In order to limit the Cover file size, we will use the same filter ”.

Here is the code that limits the cover file size to 50KB. Feel free to modify and use it as you please.

Now, That’s what I call simple.

Leave a Reply

Are you looking for support?

Please ask support questions in BuddyDev Forum and help us serve you better. Please use comment for general discussion/feature suggestions.

Your email address will not be published. All the fields marked as * are required.

If you are posting code, please use <pre> { Your Code Block } </pre>. Example:- <pre> echo $name; </pre>

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">


Subscribe