• Resolved dumielle

    (@dumielle)


    Hi,

    I love your plugin ! But I’m in trouble it doesn’t work (the submenu doesn’t appear) for the private pages I create for my clients. (I’m using WP customerarea) The author of this plugin told me to ask you :

    “ask the other plugin author how to enable the duplicate feature for custom post types (here it is called cuar_private_page).”

    Could you help please ?

    Many thanks
    Jean

    https://ww.wp.xz.cn/plugins/duplicate-post/

Viewing 1 replies (of 1 total)
  • Duplicate feature, as of version 2.6, is enabled for custom post types as well… Actually if you edit a private page the “copy to a new draft” link is shown near “Publish”/”Update” button.

    The problem is WP Customer Area does not use standard filters for row actions, but its own.

    To show my plugin’s links in the Private Pages screen you must add this line in your theme’s functions.php:
    add_filter('cuar/core/admin/content-list-table/row-actions', 'duplicate_post_make_duplicate_link_row',10,2);

    BEWARE: if you do something wrong on your functions.php file, your site will stop working and you’ll have to access it by FTP to fix it.

    It may be a better choice to tell WP Customer Area’s developer to make sure that his plugin calls the right filter (page_row_actions) so that my plugin and other ones using the same hook work flawlessly.

Viewing 1 replies (of 1 total)

The topic ‘Duplicate private custom post’ is closed to new replies.