WP_CLI

WpOrgApi::get_saltspublicWP-CLI 1.0

Gets a set of salts in the format required by wp-config.php.

Method of the class: WpOrgApi{}

No Hooks.

Returns

String. A string of PHP define() statements.

Usage

$WpOrgApi = new WpOrgApi();
$WpOrgApi->get_salts();

WpOrgApi::get_salts() code WP-CLI 2.13.0-alpha

public function get_salts() {
	return $this->get_request( self::SALT_ENDPOINT );
}