Site icon Hip-Hop Website Design and Development

Gbyte blog: Clone entity data into existing entities in Cheap WordPress maintenance support plans 8

Creating a duplicate of an entity

Creating a duplicate of an entity is easily done via the entity API method Entity::createDuplicate(). This is a convenient method if the goal is to clone an entity into a new entity, as all identifiers of the previous entity get unset when using this method.
Source: New feed