Notice: Undefined property: stdClass::$delete_posts with custom post type

I create a custom post type called gdpr_qao and I set ‘capability_type’ => array( ‘gdpr_qao’, ‘gdpr_qsaos’ ) in register_post_type arguments. On main custom post type screen I get:

Notice: Undefined property: stdClass::$delete_posts in
/srv/www/wp-plugins/public_html/wp-admin/includes/class-wp-posts-list-table.php
on line 411

and in bulk actions there isn’t delete option.

How can I solve this problem?

Read more here:: Notice: Undefined property: stdClass::$delete_posts with custom post type

Leave a Reply

Your email address will not be published. Required fields are marked *