wzshop
Forum Replies Created
-
Just for the record, the below code allows you to enable/disable the application passwords by ID
function my_prefix_customize_app_password_availability( $available, $user ) { if ( $user !== 1 ) { $available = false; } return $available; } add_filter( 'wp_is_application_passwords_available_for_user', 'my_prefix_customize_app_password_availability', 10, 2 );
Thanks
Forum: Developing with WordPress
In reply to: Only allow Application Passwords for admins?For anyone also using the Woocommerce app on the mobile. The above function will not work, once authenticated. This means it is not possible to use the Woocommerce mobile app with the function above. You can use this function below to check the user by ID. This works, if you only want to allow the admin to use Application Passwords (for the Woocommerce app) and your user ID is 1:
function my_prefix_customize_app_password_availability( $available, $user ) { if ( $user !== 1 ) { $available = false; } return $available; } add_filter( 'wp_is_application_passwords_available_for_user', 'my_prefix_customize_app_password_availability', 10, 2 );
For anyone also using the Woocommerce app on the mobile. The above function will not work, once authenticated. This means it is not possible to obtain the stats with the function above. You can use this function to check the user by ID. This works, if you only want to allow the admin to use Application Passwords and your user ID is 1:
function my_prefix_customize_app_password_availability( $available, $user ) { if ( $user !== 1 ) { $available = false; } return $available; } add_filter( 'wp_is_application_passwords_available_for_user', 'my_prefix_customize_app_password_availability', 10, 2 );
Forum: Developing with WordPress
In reply to: Only allow Application Passwords for admins?Apparently the above code (from my initial post) seems to work now. Had to do with a cache? Or maybe the code does not work when you try to connect with an earlier Application Password (a password that was generated before the code was added).
Forum: Developing with WordPress
In reply to: Only allow Application Passwords for admins?Hi, thanks for getting back to me.
Your code does not work, it also seems to do the same as the code I mentioned?Thanks
Hi Peter,
Thank you so much for your quick reply.
I don’t believe Woocommerce or my theme shows this option to users/customers (not 100% sure however). I was mainly asking if it was possible, to just let 1 thirdparty connect through an application password, and disable any other attempts/applications. But, if I get you right, this is not possible.Thanks for your reply, WZ
Hi, thanks for getting back to me.
I did some debugging and found that this plugin Advanced Google reCAPTCHA from WebFactory Ltd caused the issue. I deactivated this plugin and now I am using the reCAPTCHA from Wordfence, all is working fine. Thanks.Hi,
Yes the difference in user interface is what I need.
I can’t show you a screenshot right now, but like I said it is quite easy.Currently, when enabling V2 captcha, it requires the user to solve the recaptcha per 1 image upload. So if someone wants to upload 3 photos, they need to solve the recaptcha 3 times. That is not very user friendly.
Forum: Plugins
In reply to: [Advanced Google reCAPTCHA] How to apply reCaptcha v3 to product reviewsHi is this fixed already. I would like to use recaptcha on product reviewforms also.
Thanks
also, why not offer Recaptcha V3 also?
Hi, thanks again for getting back to me.
Again: I really would like to keep the image upload function for the normal customer review form, but like I said the reCaptcha v2 function is not really functioning properly with the image upload function (time-out issue and solving the reCaptcha per image upload).Can this be fixed?
Hi,
Thanks for getting back to me. Yes, I guess deleting the image when no review is submitted would be a good idea. I am not necessarily afraid of security issues, I am just wondering if there are any. This is your plugin so I guess you thought this aspect through?
I really would like to keep the image upload function for the normal customer review form, but like I said the reCaptcha v2 function is not really functioning properly with the image upload function (time-out issue and solving the reCaptcha per image upload).
Hope to hear from you soon, thanks!Thank you so much for sorting that out.
Really appreciated!Hi, thanks for your reply.
Sorry if I was unclear.
I meant that the field “_alg_ean” does not appear in the list for the “Product Feed PRO for WooCommerce by AdTribes” plugin. I did find the field “alg ean”?in the dropdown list.. It seems to work, so I was asking if the “alg ean”?field is the correct one to use.Thanks!
Forum: Plugins
In reply to: [reCaptcha by BestWebSoft] Plugin deleted?hi, thank you so much!
Greatly appreciate you took the time to inform me, thanks!