How to change Custom Permalink for Taxonomy? (remove the slashes from term-slug)

I found the solution… add_filter( ‘term_link’, ‘remove_slash_taxonomy’, 10, 2 ); function remove_slash_taxonomy( $permalink, $term ) { if ($term->taxonomy == ‘nieruchomosc’) $permalink = str_replace(“https://wordpress.stackexchange.com/”.$term->slug.”https://wordpress.stackexchange.com/”, $term->slug, $permalink); return $permalink; }

Fire a code when permalinks updated

From what I know you can use the post_updated or the save_post hooks https://developer.wordpress.org/reference/hooks/post_updated/ https://developer.wordpress.org/reference/hooks/save_post/ Hope that this help. If you need any other info please let me know. Update: Sorry for my misunderstanding. You can use the the_permalink filter. Below you have the docs https://codex.wordpress.org/Plugin_API/Filter_Reference/the_permalink

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)