change the Http Operations method by using WordPress built-in methods