apply_filters( 'um_permalink_base_after_filter{$filter_slug}', $permalink, $raw_value ) → {string}
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
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 );
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 );
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 );
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 );