Support

Account

Home Forums Backend Issues (wp-admin) WP User frontend pro not saving ACF values to Database Reply To: WP User frontend pro not saving ACF values to Database

  • the first code you posted is probably working. The only way to know for sure is to look in the DB to see if the field key reference meta key was added.

    
    $get_meta = get_post_meta('32', "payment_options", true);
    print_r($get_meta);
    echo "<br>";
    
    // update field will always return false 
    // if the value used to update matches the value
    // in the database. 
    // The if will always be false even if the update succeeds.
    
    if(update_field('payment_options', $get_meta, '32')){
    	echo "Success";
    }
    else{
    	
    	echo "FAIL";
    }