Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter saito01

    (@saito01)

    @takahashi_fumiki
    お世話になってます。ありがとうございます!
    早速トライしてみます!

    Thread Starter saito01

    (@saito01)

    takahashi_fumikiさん

    ありがとうございます!お礼が遅くなってすみません。
    そうなんですね?。少なくともプロフィール画像だけは登録したいんですが、

    getIcon()
    
    public string|null getIcon()
    Returns the icon field (The URL for the Group's icon) for the group as a string if present.

    これを使うのでしょうか?
    他の方の参考にして、苗字と名前は登録できたんですが???

    /* functions.php */
    /* gianism 登録時の処理 */
    function additional_info( $user_id, $data, $service, $on_creation ){
        // 既存ユーザーの場合は処理せず
        if ( is_user_logged_in() ) return;
     
        switch ( $service ) {
            case 'facebook' :
                /* first_name, last_name 更新 */
                if( !empty( $data['first_name'] ))  update_user_meta( $user_id, 'first_name', $data['first_name']);
                if( !empty( $data['last_name']  ))  update_user_meta( $user_id, 'last_name',    $data['last_name']);
            break;
        }
    }
    add_action('wpg_connect', 'additional_info', 10, 4);

    これの値を変えたらできるでしょうか?
    プロフィール画像の値が分からなくて断念したものです???

Viewing 2 replies - 1 through 2 (of 2 total)