积分与余额账务系统硬切重构
This commit is contained in:
@@ -34,7 +34,7 @@ if (!($user instanceof WP_User) || $user->ID <= 0) {
|
||||
$user_id = (int) $user->ID;
|
||||
$avatar = function_exists('aksrt_get_avatar_url') ? aksrt_get_avatar_url($user_id, ['size' => 96]) : get_avatar_url($user_id, ['size' => 96]);
|
||||
$home_url = function_exists('aksrt_get_user_home_url') ? aksrt_get_user_home_url($user) : get_author_posts_url($user_id);
|
||||
$credits = function_exists('aksrt_user_credits') ? (int) aksrt_user_credits($user_id) : 0;
|
||||
$credits = aksrt_user_points($user_id);
|
||||
$post_count = (int) count_user_posts($user_id, 'post', true);
|
||||
$bio = function_exists('aksrt_get_user_description') ? aksrt_get_user_description($user_id) : (string) get_the_author_meta('description', $user_id);
|
||||
$show_credits = class_exists('\AKSRT\Settings\Settings') ? \AKSRT\Settings\Settings::credits_enabled() : true;
|
||||
|
||||
Reference in New Issue
Block a user