New answers tagged

2

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 https://gist.github.com/iandunn/8162246 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 ...


0

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.


0

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.


0

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