LLMS_Helper_Keys::deactivate_keys( array $keys )

Deactivate LifterLMS API keys with remote server


Parameters Parameters

$keys

(array) (Required) Array of keys.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: libraries/lifterlms-helper/includes/class-llms-helper-keys.php

						)
					);

				}
			}
		}
	}

	/**
	 * Deactivate LifterLMS API keys with remote server
	 *
	 * @since 3.0.0
	 * @since 3.4.1 Ensure key exists before attempting to deactivate it.
	 * @since 3.5.0 Deleting any cached activation result.
	 *
	 * @param array $keys Array of keys.
	 * @return array
	 */
	public static function deactivate_keys( $keys ) {

		$keys = array_map( 'sanitize_text_field', $keys );


Top ↑

Changelog Changelog

Changelog
Version Description
3.4.1 Ensure key exists before attempting to deactivate it.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.