php - Wordpress update_user_meta not working -
** solved ** had failed require wordpress in form processor. adding line @ top fixed (always simplest thing, right!?): require_once( explode( "wp-content" , __file__ )[0] . "wp-load.php" ); i've created custom front-end profile client's site, , i'm adding way other users favorite profile. (please don't suggest buddypress or plugin -- i've tried dozen, , none of them have of capabilities need. thanks.) :) anyway.... here overview. hope it's clear. let's user 1 viewing profile of user 10. in database, user 1 has field called favorite_10 can set "yes" or "no" (or null) when clicks "favorite" button in user's profile, run simple script change value "yes" "no" or vice-versa that's it. think it's pretty solution, form processing script breaking @ update_user_meta line. here go. foreach($sitterlist $sitteritem) { $code = 'favorite_'.(esc_html($sitterit...