New answers tagged


In the end, wp_signon() was the solution, as the cookie was apparently not set with the code I was using. I followed this solution to circumvent a need for password and added these functions to functions.php. I also moved the autologin code from 'init' to template where it executes before any headers are sent or any ...


This will do it :-) add_action( 'wp_print_scripts', 'DisableStrongPW', 100 ); function DisableStrongPW() { if ( wp_script_is( 'wc-password-strength-meter', 'enqueued' ) ) { wp_dequeue_script( 'wc-password-strength-meter' ); } } I found the solution here.


For VB.Net users, simply converting the CSharp code to VB with a converter won't work. I believe it has something to do with the difference in the way the RightShift >> operators work in CSharp compared to VB but I'm not 100% on that. I just know it doesn't work. So..... What I did was create a CSharp class library that I reference in my VB project.


Yes and no, WP_Query fetches posts, it doesn't display them. You can query for WooCommerce products as they're a custom post type. Just create a query object, and specify the post_type parameter to use the post type WooCommerce uses, then loop over them, displaying them and grabbing the post meta such as the SKU as you go along. How you would do that, and ...

Top 50 recent answers are included