Filter: um_permalink_base_after_filter{$filter_slug}

Filters the base user permalink value after cleaning. $filter_slug - can be empty '' or equals 'name', 'name_dash', 'name_plus'

Parameters:
Name Type Description
$permalink string

User Profile permalink.

$raw_value string

The base user permalink value before cleaning.

Since:
  • 1.3.x
Source:
Returns:

User Profile permalink.

Type
string
Examples

Change base permalink after cleaning if permalink settings isn't connected with user first or last name.

function my_permalink_base_after_filter( $permalink, $raw_permalink ) {
    // your code here
    return $permalink;
}
add_filter( 'um_permalink_base_after_filter', 'my_permalink_base_after_filter', 10, 2 );

Change base permalink after cleaning if permalink settings is a full name.

function my_permalink_base_after_filter_name( $permalink, $raw_permalink ) {
    // your code here
    return $permalink;
}
add_filter( 'um_permalink_base_after_filter_name', 'my_permalink_base_after_filter_name', 10, 2 );

Change base permalink after cleaning if permalink settings is a full name connected by dash.

function my_permalink_base_after_filter_name_dash( $permalink, $raw_permalink ) {
    // your code here
    return $permalink;
}
add_filter( 'um_permalink_base_after_filter_name_dash', 'my_permalink_base_after_filter_name_dash', 10, 2 );

Change base permalink after cleaning if permalink settings is a full name connected by plus.

function my_permalink_base_after_filter_name_plus( $permalink, $raw_permalink ) {
    // your code here
    return $permalink;
}
add_filter( 'um_permalink_base_after_filter_name_plus', 'my_permalink_base_after_filter_name_plus', 10, 2 );