Ein benutzerdefiniertes Profilfeld namens “Follower” wird mit dieser function erstellt:
function my_profile_fields($profile_fields) { // Add new fields $profile_fields['followers'] = 'Followers'; return $profile_fields; } add_filter('user_contactmethods', 'my_profile_fields');
Wie füge ich einen Standardwert zum Feld “Follower” im Benutzerprofil hinzu?
Zum Beispiel, wenn ich wollte, dass es einen Anfangswert von “1” hat, wie würde ich das tun?