register_rest_route();
. Which is called on the action rest_api_init
which is why I was asking if I should call flush_rewrite_rules();
on late init
or late rest_api_init
, within register_activation_hook();
and/or register_deactivation_hook();