Hooks / nab_duplicate_post_pre

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

Runs before duplicating a post.


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.


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


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