Hooks / nab_duplicate_post_pre

apply_filters( 'nab_duplicate_post_pre', (boolean|int) , int $src_post_id )

Runs before duplicating a post.

Description

Used to prevent default duplication method.

This allows third-party plugins to duplicate a post using alternative methods. Very useful to deal with page builders.

Parameters

((boolean|int)) (Required) result the ID of the new post or false otherwise.

$src_post_id

(int) (Required) the ID of the post to duplicate.

Source

File: admin/helpers/class-nelio-ab-testing-post-helper.php

Changelog

Changelog
VersionDescription
5.0.6Introduced.