1
は、次のコードで単純なプラグインを想像:ワードプレスプラグインのアクティベーションフックからリダイレクトするとどうなりますか?
register_activation_hook(__FILE__, $this, 'on_plugin_activate');
public function on_plugin_activate(){
wp_redirect("https://www.google.com");
exit();
}
これはプラグインの活性化をキャンセルするだろうか?