WP_CLI

WpOrgApi::get_salts()publicWP-CLI 1.0

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

Method of the class: WpOrgApi{}

No Hooks.

Return

true|false|String. False on failure. A string of PHP define() statements on success.

Usage

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

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

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