wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
_local_storage_notice is private and should not be used in themes or plugins directly.
_local_storage_notice › WordPress Function
Seit3.6.0
Veraltetn/v
› _local_storage_notice ( Keine Parameter )
Zugriff: |
|
Definiert in: |
|
Codex: |
Outputs the HTML for restoring the post data from DOM storage
Ähnliche Funktionen: wp_create_nonce, is_locale_switched, is_local_attachment, wp_password_change_notification, render_block_core_shortcode
Quellcode
function _local_storage_notice() { $local_storage_message = '<p class="local-restore">'; $local_storage_message .= __( 'The backup of this post in your browser is different from the version below.' ); $local_storage_message .= '<button type="button" class="button restore-backup">' . __( 'Restore the backup' ) . '</button></p>'; $local_storage_message .= '<p class="help">'; $local_storage_message .= __( 'This will replace the current editor content with the last backup version. You can use undo and redo in the editor to get the old content back or to return to the restored version.' ); $local_storage_message .= '</p>'; wp_admin_notice( $local_storage_message, array( 'id' => 'local-storage-notice', 'additional_classes' => array( 'hidden' ), 'dismissible' => true, 'paragraph_wrap' => false, ) ); }