芝麻web文件管理V1.00
编辑当前文件:/home/mybf1/public_html/class.bf1.my/wp-content/plugins/all-in-one-seo-pack/app/Common/Api/User.php
get_params(); if ( empty( $args['userId'] ) ) { return new \WP_REST_Response( [ 'success' => false, 'message' => 'No user ID was provided.' ], 400 ); } $url = get_avatar_url( $args['userId'] ); return new \WP_REST_Response( [ 'success' => true, 'url' => is_array( $url ) ? $url[0] : $url, ], 200 ); } }