creating custom fields
-
Hi,
I am adding custom fields to my profile page, but using add_action hooks and custom functions. I have placed them at the end of the wp-includes/functions.php
function extra_profile_fields ( $user ) { global $current_user; $type_of_data = gettype( $user ); error_log("the type of data for $user is");
add_action(‘profile_personal_options’, ‘extra_profile_fields’);
However, I have found that $user is coming up empty.
If there a different place where I should be be adding my hook and code so that $user comes up with the current user who is logged in?
Thank you.
Peter
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘creating custom fields’ is closed to new replies.