public function rewrite() {
    global $wp_rewrite;

    add_rewrite_tag( "%no-admin-ajax%", "([0-9]+)" );

    // The whole ajax url matching pattern can be altered with filter "no-admin-ajax/rule"
    $default_rule = "^". $this->keyword ."/?$";

    $rule = apply_filters( "no-admin-ajax/rule", $default_rule );

    add_rewrite_rule(
      $rule,
      "index.php?no-admin-ajax=true",
      "top"
    );
  }