• Resolved ahcj

    (@ahcj)


    If I use this in my theme functions.php:

    add_filter('simple_local_avatars_dynamic_resize', false);

    … I get this in my error log:

    PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in ~/wp-includes/class-wp-hook.php on line 287

    Am I doing this incorrectly?

    • This topic was modified 3 years, 3 months ago by ahcj.
    • This topic was modified 3 years, 3 months ago by ahcj.
Viewing 1 replies (of 1 total)
  • Hi @ahcj,

    I’m sorry for this very late reply. You need to modify your snippet a little bit to make it work. You need to pass a function as the second argument of add_filter, you passed a boolean, that’s why you got the error.

    add_filter( 'simple_local_avatars_dynamic_resize', '__return_false' );

Viewing 1 replies (of 1 total)
  • The topic ‘How to use the simple_local_avatars_dynamic_resize filter?’ is closed to new replies.