acf/slugify filter-hookACF 5.11.4

Filters the slug created by acf_slugify().

Usage

add_filter( 'acf/slugify', 'wp_kama_acf_slugify_filter', 10, 3 );

/**
 * Function for `acf/slugify` filter-hook.
 * 
 * @param string $slug The newly created slug.
 * @param string $raw  The original string.
 * @param string $glue The separator used to join the string into a slug.
 *
 * @return string
 */
function wp_kama_acf_slugify_filter( $slug, $raw, $glue ){
	// filter...
	return $slug;
}
$slug(string)
The newly created slug.
$raw(string)
The original string.
$glue(string)
The separator used to join the string into a slug.

Changelog

Since 5.11.4 Introduced.

Where the hook is called

acf_slugify()
acf/slugify
acf/includes/acf-helper-functions.php 394
return apply_filters( 'acf/slugify', $slug, $raw, $glue );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.