W3cubDocs

/WordPress

WP_Paused_Extensions_Storage::get_option_name(): string

Get the option name for storing paused extensions.

Return

string

Source

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";
}

Changelog

Version Description
5.2.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_paused_extensions_storage/get_option_name