WP_Paused_Extensions_Storage::get_option_name() WordPress Method

The WP_Paused_Extensions_Storage::get_option_name() method is used to get the name of the option to store the paused extensions in.

WP_Paused_Extensions_Storage::get_option_name() #

Get the option name for storing paused extensions.


Return

(string)


Top ↑

Source

File: wp-includes/class-wp-paused-extensions-storage.php

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


Top ↑

Changelog

Changelog
VersionDescription
5.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.