Assets::get_confirmation_to_delete_account()
Get the confirmation text for deleting a virtual settings.
Return
(string) The confirmation text.
Source
File: src/Tribe/Assets.php
public static function get_confirmation_to_delete_account() {
if (
tribe( 'editor' )->should_load_blocks()
&& tribe( 'events.editor.compatibility' )->is_blocks_editor_toggled_on()
) {
return _x(
"Are you sure you want to delete the virtual settings? \nThis will also delete any virtual event blocks for this event. \n\nThis operation cannot be undone.",
'The block editor message to display to confirm a user would like to delete the virtual settings.',
'events-virtual'
);
}
return _x(
"Are you sure you want to delete the virtual settings? \n\nThis operation cannot be undone.",
'The classic editor message to display to confirm a user would like to delete the virtual settings.',
'events-virtual'
);
}
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |