WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. paulodamian
    Member
    Posted 7 months 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 5 months 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 3 months ago #

    same problem for me

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.