Edit Flow
[resolved] Making Custom Status Public (6 posts)

  1. ktrusak
    Posted 3 years ago #

    Hello, I am having some problems with the recent update. I had the following code in place to make my custom status public, however, with the new update this is causing major site problems

    function alt_post_status() {
     global $post;
        global $wp_post_statuses;
        $wp_post_statuses['holding']->public = true;
    add_action( 'init', 'alt_post_status' );

    I get an error inside of wp-admin/includes/class-wp-posts-list-table.php on line 149 when I put it in now. And all of the post lists in the admin area don't appear. Any ideas? Or maybe is there a way to put in the old version for now? or different code to make my posts public?

    Thanks for your time


  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 3 years ago #

    Additional "public" statuses aren't yet fully supported in core, which is probably why you're seeing problems. I would instead filter or add the 'holding' status to your queries.

  3. ktrusak
    Posted 3 years ago #

    Thanks for the quick reply. I was able to patch the problem by adding this line:

    , 'public' => true

    On line 245 of the file plugins/edit-flow/modules/custom-status.php solved the problem. Obviously this isn't ideal because it is going to be overwritten with every update. Any chance of adding a radio toggle to the admin screen with the next update?

  4. Yaron Guez
    Posted 3 years ago #

    ktrusak, changing that line of code totally solved the problem I was having here:

    Thanks so much!

    Daniel, is it possible to add this public functionality to the plugin in the next release?

  5. Yaron Guez
    Posted 3 years ago #

    Found typos in my code. It works now. Though having the option to make statuses public would still be very useful.

  6. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 3 years ago #

    The ability to make statuses public probably isn't on the roadmap for Edit Flow, at least until core finishes custom status support.

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic


No tags yet.