add_rewrite_endpoint added