Automattic\WooCommerce\Internal\ProductAttributesLookup

DataRegenerator::verify_tool_execution_nonce()privateWC 1.0

Verify the validity of the nonce received when executing a tool from the Status - Tools page.

Метод класса: DataRegenerator{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// private - только в коде основоного (родительского) класса
$result = $this->verify_tool_execution_nonce();

Код DataRegenerator::verify_tool_execution_nonce() WC 8.7.0

private function verify_tool_execution_nonce() {
	// phpcs:ignore WordPress.Security.ValidatedSanitizedInput
	if ( ! isset( $_REQUEST['_wpnonce'] ) || wp_verify_nonce( $_REQUEST['_wpnonce'], 'debug_action' ) === false ) {
		throw new \Exception( 'Invalid nonce' );
	}
}