Maintenance_Mode::allow_users_to_delete_submissions( bool $can_delete, WP_Post $post )

Disable the delete button while in maintenance mode.


Parameters

$can_delete

(bool) (Required) Whether the user should be able to delete a submission or not.

$post

(WP_Post) (Required) A reference to the post object to allow or disallow the deletion of.


Top ↑

Return

(false) Whether the user should be allowed to delete the post or not.


Top ↑

Source

File: src/Events_Community/Custom_Tables/V1/Migration/Maintenance_Mode/Maintenance_Mode.php

	public function allow_users_to_delete_submissions( bool $can_delete, WP_Post $post ): bool {
		return false;
	}

Top ↑

Changelog

Changelog
Version Description
4.10.1 Introduced.