Change some text when a Post status changes to "Scheduled"?

This topic contains 4 reply and 2 voices, and was last updated by paperweight 10 years, 5 months ago
Viewing 4 Posts - 1 through 4 (of 4 total)
Author Posts
November 7, 2013 at 2:31 am 9820
paperweight 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?
November 7, 2013 at 11:17 am 9826
Tareq Hasan Tareq Hasan

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.

November 7, 2013 at 7:33 pm 9832
paperweight paperweight

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~

November 12, 2013 at 12:22 am 9963
Tareq Hasan Tareq Hasan

Sorry, didn’t notice this one.

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

November 12, 2013 at 12:25 am 9965
paperweight paperweight

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

Viewing 4 Posts - 1 through 4 (of 4 total)