Home Forums Plugin Support WP User Frontend Pro Change some text when a Post status changes to "Scheduled"?

This topic is: resolved

This topic contains 4 replies, has 2 voices, and was last updated by  paperweight 5 years, 6 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #9820

    paperweight
    Participant
    Post count: 122

    In the Dashboard, is there a way when the Status of a Post changes to “Scheduled” that the “Edit” and “Delete” links disappear so users can not further edit or delete the Post? I want to instead of Edit and Delete say “Scheduled” (just like the Status column).

    Is there a way to tweak that in the code? if so, where should I add that?

    #9826

    Tareq Hasan
    Keymaster
    Post count: 2831

    Change the code in /class/frontend-dashboard.php line 178 to this:
    [php]if ( ($post->post_status == ‘pending' && $disable_pending_edit == ‘on' || $post->post_status == ‘future') ) {[/php] and see if it works.

    #9832

    paperweight
    Participant
    Post count: 122

    Thanks for your help. MY line numbers appear off so I am unsure exactly what needs to be replaced. What code should be replaced by your code above?

    Tks~

    #9963

    Tareq Hasan
    Keymaster
    Post count: 2831

    Sorry, didn't notice this one.

    [php]if ( $post->post_status == ‘pending' && $disable_pending_edit == ‘on' ) {[/php]
    This one should be replaced.

    #9965

    paperweight
    Participant
    Post count: 122

    Cheers, no problem, I will implement in the next hour and let you know of any issues~

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Change some text when a Post status changes to "Scheduled"?’ is closed to new replies.