Export comments from a ‘Page’

[ad_1]

Hi there.

I am trying to export comments from a wordpress ‘page’ (not post) on a site built using Divi. But when i try the first step in the instructions here: to add the following code to the functions.php:

add_filter('product_Comments_csv_product_export_args', 'wtproduct_Comments_csv_product_export_args');
function wtproduct_Comments_csv_product_export_args($args){
    if(isset($args['post_type']) && $args['post_type'] == 'Post'){
        $args['post_type'] = 'Post,page'; 
    }
    return $args;
}

i get the msg “Scrape key check failed. Please try again.”

Can anyone help?

Thank you

  • This topic was modified 12 hours, 44 minutes ago by sagehalo.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer