Skip to content

Duplicate

Carlos Moreira edited this page Jun 2, 2020 · 1 revision

The duplicate feature will allow users to easily clone/duplicate an existing entry, adding that extra option to the available options when hovering an entry in the administration list.

This feature can be enabled either by simply setting it to true or passing it an array with the values for the labels this feature uses.

Example:

return [
	'active'   => true,
	'type'     => 'cpt',
	'name'     => 'igmap',
	'supports' => [
		'title',
	],
	'features' => [
		'duplicate'     => [
			'label'      => __( 'Clone Map', 'interactive-geo-maps' ),
			'attr_title' => __( 'Create a copy of this map', 'interactive-geo-maps' ),
		],
	],
];

Clone this wiki locally