Provider::allow_users_to_delete_submissions( bool $can_delete, WP_Post $event )

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.

$event

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


Top ↑

Return

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


Top ↑

Source

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

	public function allow_users_to_delete_submissions( bool $can_delete, WP_Post $event ): bool {
		return $this->container->make( Maintenance_Mode::class )->allow_users_to_delete_submissions( $can_delete, $event );
	}

Top ↑

Changelog

Changelog
Version Description
4.10.1 Introduced.