#[RenamedFrom]

Attribute on parameters, repeatable.

use Saij\WpAppFramework\Table\RenamedFrom;

An earlier name of the parameter (the column is its name in snake case): an existing column of that name is renamed and keeps its data. Repeat it for a chain of renames, newest first. Keep it as long as an installation may still have the old column; removing it drops such a column with its data.

Arguments

#[RenamedFrom(string $column)]
ParameterTypeDefaultDescription
columnstringrequiredThe earlier name of the parameter, e.g. text or postID.