Custom permalinks disappear when another plugin activates
-
Hi,
I’m trying to rewrite author permalinks to something else like “member”
this does the trick:
$wp_rewrite->author_base = 'atletes';
$wp_rewrite->flush_rules();
I’m calling this code upon plugin activation: register_activation_hook
But when another plugin,doesn’t matter which one activates, this gets broken, and I have to deactivate and activate plugin again to change permalink again
is this normal?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom permalinks disappear when another plugin activates’ is closed to new replies.