acf_duplicate_ui_options_page()ACF 6.2

Duplicates an ACF UI options page.

No Hooks.

Returns

Array|true|false. The new ACF UI options page, or false on failure.

Usage

acf_duplicate_ui_options_page( $id, $new_post_id );
$id(int|string)
The ACF UI options page ID, key or name.
$new_post_id(int)
Optional ID to override.

Changelog

Since 6.2 Introduced.

acf_duplicate_ui_options_page() code ACF 6.8.8

function acf_duplicate_ui_options_page( $id = 0, $new_post_id = 0 ) {
	return acf_duplicate_internal_post_type( $id, $new_post_id, 'acf-ui-options-page' );
}