plugin.php
public function redirect_ajax_url( $url, $path, $blog_id ) {
    if( strpos( $url, 'admin-ajax' ) ) {
      return home_url( "/". $this->keyword ."/" );
    }
    else {
      return $url;
    }
  }
public function redirect_ajax_url( $url, $path, $blog_id ) {
    if( strpos( $url, 'admin-ajax' ) ) {
      return home_url( "/". $this->keyword ."/" );
    }
    else {
      return $url;
    }
  }
public function redirect_ajax_url ( $ url , $ path , $ blog_id ) { if ( strpos ( $ url , 'admin-ajax' ) ) { return home_url ( "/" . $ this -> keyword . "/" ) ; } else { return $ url ; } }
Function that handles rewriting the admin-ajax url to the one we want
Function that handles rewriting the admin - ajax url to the one we want