Fires when determining if the “Copy” row action should be made available. Allows overriding supported post types.
Parameters
- $post
WP_Post Post object of current post in listing.
- Post
array Post types supported by default.
Changelog
- Introduced in Jetpack 7.0.0
How to use this hook
Notes
You can add support for the Copy Post feature to your own Custom Post Type like so:
function jetpackcom_add_myposttype_support_copy_post( $post_types ) {
$post_types[] = 'myposttype';
return $post_types;
}
add_filter( 'jetpack_copy_post_post_types', 'jetpackcom_add_myposttype_support_copy_post' );