BuddyPressCommand::sanitize_string( string $type )

String sanitization.


Parameters Parameters

$type

(string) (Required) String to sanitize.


Top ↑

Return Return

(string) Sanitized string.


Source Source

File: cli/src/command.php

	protected function sanitize_string( $type ) {
		return strtolower( str_replace( '-', '_', $type ) );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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