|
Server : LiteSpeed System : Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64 User : gazetufm ( 1431) PHP Version : 8.1.35 Disable Function : NONE Directory : /home2/gazetufm/public_html/wp/wp-content/plugins/wp-crontrol/src/Schedule/ | |
|
Path: //home2/gazetufm/public_html/wp/wp-content/plugins/wp-crontrol/src/Schedule/CrontrolSchedule.php
Size: 864 B
Permissions: 0644
<?php
/**
* Represents a custom cron schedule added by WP Crontrol.
*/
namespace Crontrol\Schedule;
/**
* Represents a custom cron schedule added by WP Crontrol.
*/
final class CrontrolSchedule extends Schedule {
/**
* Crontrol schedules are persistent if they're in use.
*/
#[\Override]
public function persistent(): bool {
return $this->is_in_use();
}
/**
* Gets the message explaining why this schedule is persistent.
*
* @return string The persistent reason message.
*/
#[\Override]
public function get_persistent_message(): string {
return __( 'This custom schedule is in use and cannot be deleted', 'wp-crontrol' );
}
/**
* Check if this schedule can be deleted.
*
* WP Crontrol schedules can be deleted if they're not in use.
*/
#[\Override]
public function deletable(): bool {
return ! $this->is_in_use();
}
}