*/ public static function labels(): array { return array( 'facebook' => 'Facebook', 'x' => 'X (Twitter)', 'instagram' => 'Instagram', 'linkedin' => 'LinkedIn', 'youtube' => 'YouTube', 'pinterest' => 'Pinterest', 'tiktok' => 'TikTok', 'threads' => 'Threads', 'mastodon' => 'Mastodon', 'bluesky' => 'Bluesky', 'github' => 'GitHub', 'wikipedia' => 'Wikipedia', ); } /** * Renders the profile section. * * @param WP_User $user User being edited. */ public function render( $user ): void { if ( ! $user instanceof WP_User || ! current_user_can( 'edit_user', $user->ID ) ) { return; } $profiles = Meta::user( (int) $user->ID, 'social_profiles' ); $profiles = is_array( $profiles ) ? $profiles : array(); wp_nonce_field( self::NONCE, self::NONCE . '_nonce' ); ?>