12a271981a
Wrap 4 define() calls with defined() || guards to survive double-load. Replace hardcoded 'shortcode-town' strings in Taxonomy and FieldGroup with PostType::SLUG. Update Activator comment to reflect S2 reality. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
382 B
PHP
20 lines
382 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace WPMultiCity;
|
|
|
|
final class Activator
|
|
{
|
|
public static function activate(): void
|
|
{
|
|
// S2 registrations use rewrite=false; flush is harmless and
|
|
// forward-compatible with the S4 URL router.
|
|
flush_rewrite_rules();
|
|
}
|
|
|
|
public static function deactivate(): void
|
|
{
|
|
flush_rewrite_rules();
|
|
}
|
|
}
|