On this page
WP_Paused_Extensions_Storage::get_option_name(): string
Get the option name for storing paused extensions.
Return
string
Source
File: wp-includes/class-wp-paused-extensions-storage.php. View all references
protected function get_option_name() {
if ( ! wp_recovery_mode()->is_active() ) {
return '';
}
$session_id = wp_recovery_mode()->get_session_id();
if ( empty( $session_id ) ) {
return '';
}
return "{$session_id}_paused_extensions";
}
Related
Uses
| Uses | Description |
|---|---|
| WP_Recovery_Mode::is_active() wp-includes/class-wp-recovery-mode.php | Checks whether recovery mode is active. |
| WP_Recovery_Mode::get_session_id() wp-includes/class-wp-recovery-mode.php | Gets the recovery mode session ID. |
| wp_recovery_mode() wp-includes/error-protection.php | Access the WordPress Recovery Mode instance. |
Used By
| Used By | Description |
|---|---|
| WP_Paused_Extensions_Storage::set() wp-includes/class-wp-paused-extensions-storage.php | Records an extension error. |
| WP_Paused_Extensions_Storage::delete() wp-includes/class-wp-paused-extensions-storage.php | Forgets a previously recorded extension error. |
| WP_Paused_Extensions_Storage::get_all() wp-includes/class-wp-paused-extensions-storage.php | Gets the paused extensions with their errors. |
| WP_Paused_Extensions_Storage::delete_all() wp-includes/class-wp-paused-extensions-storage.php | Remove all paused extensions. |
Changelog
| Version | Description |
|---|---|
| 5.2.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_paused_extensions_storage/get_option_name