The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Simple Local Avatars
Use the max size filter (3 posts)

  1. paulodamian
    Posted 3 years ago #

    Hi, I am trying to limit the max file size to the image.

    This is what I am doing in my theme functions.php

    function pdo_avatar_limit($size) {
    $size = 102400;
    return $size;
    add_filter(‘simple_local_avatars_upload_limit’, ‘pdo_avatar_limit’);

    I dont know what is the problem, but it seems that the filter is never called because I still can upload big images (even if I do $size = 10;)


  2. iamonlythird
    Posted 2 years ago #

    I am experiencing the exact same issue. If the developer is around, it would be very helpful if he could shed some light into this.

  3. kevinr11
    Posted 2 years ago #

    same problem for me

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Local Avatars
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.