Skip to content

Duplicate Helper

Mattias edited this page Mar 23, 2022 · 3 revisions

register()

Register post types the Duplicate class should initiate on

register(array $postTypes)

Parameters

  • $postTypes (array) (Required)

Example

post_duplicate()->register([
    'post',
    'page'
]);

Preview

Duplicate Preview

Clone this wiki locally