apply_filters ( 'jetpack_copy_post_post_types', array Post, WP_Post $post )

Fires when determining if the "Copy" row action should be made available.<p>Allows overriding supported post types.</p>

Source file: modules/copy-post.php

View in GitHub



(array) Post types supported by default.


(WP_Post) Post object of current post in listing.


Since: Jetpack 7.0.0


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' );

Have a note to contribute?

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s