Edit Flow
[resolved] Warning when adding custom statuses to custom post types (4 posts)

  1. bocoroth
    Posted 3 years ago #

    When I add 'ef_custom_statuses' to the 'supports' field of my Custom Post Type declaration, I get a warning on the admin page of the CPT:

    Warning: Attempt to assign property of non-object in [...]/wp-content/plugins/edit-flow/modules/custom-status/custom-status.php on line 581


  2. Connor Jennings
    Posted 3 years ago #

    Sorry, just spotted this. Do you have any more information on the problem? And are you talking about the function "add_post_type_support" or when you go the "EditFlow"->"Custom Statuses"->"Options" and check the checkbox for that custom post type?

  3. bocoroth
    Posted 3 years ago #

    I'm trying to get Custom Statuses to show up for my CPTs. I had read somewhere that the way to go about that was to add "ef_custom_statuses" to the supports field when declaring a CPT (in functions.php). But when I do that, I get the warning all over the admin panel page for the CPT (to view all posts). It shows up 4 times at the very top, and 6 times under the title of every post. Not sure if I missed a step or something, or maybe this isn't the way to do it anymore.

    Actually, now that I look at the Edit Flow settings for custom statuses, I see my CPT is checked, but grayed out and it says, "Disabled because add_post_type_support( 'cpt', 'ef_custom_statuses' ) is included in a loaded file." below it. So I'm probably not doing it the right way...

    Great plugin overall, just have this one problem.

  4. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 3 years ago #

    I'd recommend removing your code snippet, and instead using the admin interface for activating support based on post type.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Edit Flow
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic