noptin_sanitize_title_slug( array|string $slug = '' )

Sanitizes a slug


Parameters Parameters

$slug

(array|string) (Optional) The slug to sanitize.

Default value: ''


Top ↑

Return Return

(string|string[].)


Top ↑

Source Source

File: includes/functions.php

function noptin_sanitize_title_slug( $slug = '' ) {
	$slug = str_ireplace( array( '_', '-' ), ' ', $slug );
	$slug = map_deep( $slug, 'ucwords' );
	return noptin_clean( $slug );
}


Top ↑

Changelog Changelog

Changelog
VersionDescription
1.2.4Introduced.

Top ↑

User Contributed Notes User Contributed Notes

30 day money back guarantee
Safe & Secure online payment
Custom CSS Slide Example
Custom Animation Example
Default Animation