Auto delete WordPress comments
You have to create a schedule event. It is a best practice to assign this schedule event to the activation of the plugin, and it should be cleared when the plugin is deactivated. /** * Plugin activation * – create schedule event */ function enlsbv7_activation() { if ( ! wp_next_scheduled( ‘enlsbv7_event’ ) ) { wp_schedule_event( … Read more