WordPress.org

Forums

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

  1. paulodamian
    Member
    Posted 1 year 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;)

    http://wordpress.org/plugins/simple-local-avatars/

  2. iamonlythird
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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

Tags

No tags yet.