<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
<div class="wp-powersuite-module-settings">
	<p class="description">
		<?php esc_html_e( 'Disables automatic post saving while you edit on post and page screens, which reduces hidden draft revisions in the database. Manual saves are unaffected.', 'wp-powersuite' ); ?>
	</p>
	<div class="wpps-module-callout">
		<p>
			<?php esc_html_e( 'Limit autosave to specific post types with:', 'wp-powersuite' ); ?>
			<code>apply_filters( 'wp_powersuite_disable_post_autosave_post_types', null )</code>
			<?php esc_html_e( '(pass an array of post type slugs, or null for all types).', 'wp-powersuite' ); ?>
		</p>
	</div>
	<div class="wpps-module-notice--warning">
		<p>
			<strong><?php esc_html_e( 'Compatibility:', 'wp-powersuite' ); ?></strong>
			<?php esc_html_e( 'If you also disable Heartbeat (especially “Disable Everywhere”), post locking and collaborative editing reminders may stop working. Keep Heartbeat enabled in the editor or use the “Allow Heartbeat in post/page editor” option.', 'wp-powersuite' ); ?>
		</p>
	</div>
</div>
