Ich möchte eine Option aktualisieren, die ein Array ist, indem ich einen neuen Wert hinzufüge, aber es gibt keine Atomizität oder Garantie der Datenintegrität.
BEISPIEL
//Get the option value (an array) $val = get_option( "some-option" ); //Add to the array $val[] = "something"; /** Here, another session might already have it and is calling "update_option" */ //Save back (this overwrites whatever that other person did) update_option( "some-option", $val );
Gibt es etwas in WordPress, das Atomarität bietet?