API / Minn\Cli / RewriteCommand

RewriteCommand final class

Minn\Cli\RewriteCommand · public/minn/src/Minn/Cli/RewriteCommand.php · 52 lines

`wp rewrite flush|structure`: permalink_structure is the engine's resolver input; there is no .htaccess rewrite file to regenerate.

Uses 1
Used by 1

Public

methodflush(array $args, array $assocArgs): void#

Flushes rewrite rules. The engine resolves URLs from options, so this is a success no-op the way `cache flush` is.

## OPTIONS

[--hard] : Ignored: the engine does not write .htaccess.

methodstructure(array $args, array $assocArgs): void#

Updates the permalink structure.

## OPTIONS

<permastruct> : The new permalink structure, stored as permalink_structure.

[--category-base=<base>] : Stored as category_base.

[--tag-base=<base>] : Stored as tag_base.

[--hard] : Ignored: the engine does not write .htaccess.