skip to Main Content

How to test HashPassword in WordPress?

I want to test (unit testing) HashPassword($password) method from WordPress. How I can check that HashPassword("123123") will return the correct hash for it? For example, I want to do something like: $hashFor123123 = "$P$P)230230832482349823"; $result = HashPassword("123123"); $this->assertSame($hashFor123123, $result); But,…

VIEW QUESTION

woocommerce booking and Woocommerce get_customer_note();

I am trying to show get_customer_note(); in woocommerce booking plugin Everything is working but It is not getting customer notes from orders. My codee <p class="form-field form-field-wide"> <label for="excerpt"><?php _e( 'Customer provided note', 'woocommerce-bookings' ); ?>:</label> <textarea rows="1" cols="40" name="excerpt"…

VIEW QUESTION
Back To Top
Search