Support

Account

Home Forums Backend Issues (wp-admin) Adding new field to existing posts Reply To: Adding new field to existing posts

  • @amjad

    
    $new_value = 'my new value';
    
    if ( $new_value !== get_field( 'field_slug' ) ) {
        update_field( 'field_slug', $new_value ); /* update field */
    }