Forum Replies Created

Viewing 2 replies - 151 through 152 (of 152 total)
  • Plugin Author C?t?lin Dogaru

    (@cdog)

    Hi Lukasz,

    Thank you for using the Avatar Manager plugin.

    Current implementation lets WordPress handle avatar uploads so they are stored in the uploads folder; an avatar image is just a regular attachment with some extra meta information (like a header or a background image). But this doesn’t mean that you can’t retrieve them; you can run a custom query by avatar_manager_custom_avatar meta key for users, or _avatar_manager_is_custom_avatar meta key for attachments.

    For example:
    $args = array( 'meta_key' => 'avatar_manager_custom_avatar' );
    $users = get_users( $args );

    foreach ( $users as $user ) ehco $user->avatar_manager_custom_avatar . PHP_EOL;

    In the above example, the value of $user->avatar_manager_custom_avatar is the attachment ID of the custom avatar image used by each user.

    Let me know if this helps.

    Best regards,
    C?t?lin Dogaru

    Plugin Author C?t?lin Dogaru

    (@cdog)

    Thank you for reporting. Forgot to add a query argument when editing a user profile. Please update to version 1.2.2 and try again. It should work now as intended. Sorry for inconvenience.

Viewing 2 replies - 151 through 152 (of 152 total)