• Resolved joncon62

    (@joncon62)


    If I save a post as a draft I can no longer edit it from the dashboard as the Edit button isn’t there. All my published events can be edited.

    I have the edit page correctly setup and the option ‘Users can edit post’ is selected.

    I currently don’t implement any paid subscriptions or payments for event submissions.

    As far as I can tell, the edit button is missing due to $payment_status = ‘pending’ in the post (_wpuf_payment_status) so it fails the test to enable $show_edit in dashboard.php

    How do I set this flag if I don’t use any of the payment methods? I can write a snippet to do it but can I do it from any menu settings?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @joncon62

    If I save a post as a draft I can no longer edit it from the dashboard as the Edit button isn’t there. All my published events can be edited.
    I have the edit page correctly setup, and the option ‘Users can edit post’ is selected.

    → According to your description, it should work fine if the settings are well configured. I tried to reproduce the fact on my testing site & the result is fine here.

    I currently don’t implement any paid subscriptions or payments for event submissions.

    As far as I can tell, the edit button is missing due to $payment_status = ‘pending’ in the post (_wpuf_payment_status) so it fails the test to enable $show_edit in dashboard.php

    How do I set this flag if I don’t use any of the payment methods? I can write a snippet to do it but can I do it from any menu settings?

    → It [payment_status] should not relate to the Editing feature as you mentioned. Hence, I don’t see any use for any custom snippet.

    To pursue the issue & investigate further > Kindly reach us from our contact us page or support[at]wedevs.com with reference of this topic. We would be glad to assist.

    Kind regards.

    Thread Starter joncon62

    (@joncon62)

    Thanks for your reply, I found my problem.

    Even though I had ‘Enable Payments’ unchecked, hidden below that I had ‘Enable Pay per post’ checked. Maybe it would be a good idea to ignore this setting if ‘Enable Payments’ is unchecked.

    The other problem I have now is that the href link is disabled for draft posts:

    $show_link = !in_array( $post->post_status, ['draft', 'future', 'pending'] );

    I would like them enabled so users can still click on them to see what the post looks like.

    Can this be an option?

    Hi again,

    I found my problem.

    → Nice to hear!

    Even though I had ‘Enable Payments’ unchecked, hidden below that, I had ‘Enable Pay per post’ checked. Maybe it would be a good idea to ignore this setting if ‘Enable Payments’ is unchecked.

    → Despite the option, if you’ve “Enable Payments” disabled, the other option “Enable Pay Per Post”, won’t be effective on the frontend.

    The other problem I have now is that the href link is disabled for draft posts:

    $show_link = !in_array( $post->post_status, ['draft', 'future', 'pending'] );

    I would like them enabled so users can still click on them to see what the post looks like.

    Can this be an option?

    → We have the plan to introduce the “Preview Post” option on the frontend side. I hope this will helps users to show their posts from the frontend.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can’t edit draft from dashboard’ is closed to new replies.