generate rewrite rules not firing (3 posts)

  1. 8MediaCentral
    Posted 3 years ago #

    Not to sure if this a bug or not, but generate_rewrite_rules appears not to trigger if 'default' permalinks is selected (appears to fire for all other options in permalinks).

    Is this expected behaviour? If it is, what is the best way to go about adding custom rewrite rule for use in a plugin?

  2. catacaustic
    very awesome
    Posted 3 years ago #

    I may be wrong, but if the default option for permalinks is selected then no rewriting happens, so any custom rewrite rules won't be used anyway will they?

  3. bcworkz
    Posted 3 years ago #

    Yes, I believe the reasoning is the Rewrite API is to extend the permalink functionality. If the user should choose to not use permalinks at all ("default permalink" is an oxymoron), it stands to reason the Rewrite API should not be applied either. It may not be reasonable from your point of view, but there is logic to it, even if you disagree with it.

Topic Closed

This topic has been closed to new replies.

About this Topic