duplicate_post_after_rewriting
duplicate_post_after_rewriting
Appears in: duplicate-post.4.0.1, duplicate-post.4.0.2, duplicate-post.4.1.1, duplicate-post.4.1.2, duplicate-post.4.4, duplicate-post.4.5
Hook Type: action
See hook in action
Displaying hooks found in version: duplicate-post.4.5do_action('duplicate_post_after_rewriting') is found 1 times:
- /src/post-republisher.php line 293289290291292293294295296297298299
*
* @param int
$copy_id
The
copy
's ID.
* @param int
$post_id
The original post's ID..
*/
\do_action(
'duplicate_post_after_rewriting'
,
$copy_id
,
$post_id
);
// Delete the copy bypassing the trash so it also deletes the copy post meta.
\wp_delete_post(
$copy_id
,
$permanently_delete
);
if
( ! \
is_null
(
$post_id
) ) {
// Delete the meta that marks the original post has having a copy.