Skip to main content

Filter: gravityview/duplicate-view/new-view

Modifies View configuration before creating the duplicated View.

Return unslashed values; GravityView slashes the array before passing it to wp_insert_post().

Parameters​

NameTypeDescription
$new_viewarrayArray of settings to be passed to wp_insert_post(), unslashed.
$post\WP_PostView being cloned.

Since​

  • 1.6
  • 3.8.0: The returned values are slashed before saving.

Source​

Defined in src/Admin/DuplicateView.php at line 193