• Is there hook or function or action I can use to send my avatar using PHP instead of rest API.?

Viewing 1 replies (of 1 total)
  • Plugin Contributor Faisal Alvi

    (@faisal03)

    Hi @msowah,

    Thank you for writing to us! Yes, you can do so with a PHP function.

    $sla = new Simple_Local_Avatars();
    $sla->assign_new_user_avatar( $url_or_media_id, $user_id );

    Where, $url_or_media_id is a URL for an image/avatar or an ID of the attachment available in the Media Library.

Viewing 1 replies (of 1 total)
  • The topic ‘Upload Avatar using PHP’ is closed to new replies.