'Job title', 'aeomatic_works_for' => 'Works for (organization)', 'aeomatic_knows_about' => 'Knows about (one topic per line)', 'aeomatic_has_credential' => 'Credentials (one per line)', 'aeomatic_alumni_of' => 'Alumni of (one institution per line)', 'aeomatic_award' => 'Awards (one per line)', ); public function register(): void { add_action( 'show_user_profile', array( $this, 'render' ) ); add_action( 'edit_user_profile', array( $this, 'render' ) ); add_action( 'personal_options_update', array( $this, 'save' ) ); add_action( 'edit_user_profile_update', array( $this, 'save' ) ); } public function render( WP_User $user ): void { if ( ! current_user_can( 'edit_user', $user->ID ) ) { return; } ?>

$label ) : $is_textarea = in_array( $key, array( 'aeomatic_knows_about', 'aeomatic_has_credential', 'aeomatic_alumni_of', 'aeomatic_award' ), true ); $value = (string) get_user_meta( $user->ID, $key, true ); ?>