Title: Gytis Repečka's Replies | WordPress.org

---

# Gytis Repečka

  [  ](https://wordpress.org/support/users/kelmas/)

 *   [Profile](https://wordpress.org/support/users/kelmas/)
 *   [Topics Started](https://wordpress.org/support/users/kelmas/topics/)
 *   [Replies Created](https://wordpress.org/support/users/kelmas/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/kelmas/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/kelmas/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/kelmas/engagements/)
 *   [Favorites](https://wordpress.org/support/users/kelmas/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/users/kelmas/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/kelmas/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Single Sign On] User registration toggle option](https://wordpress.org/support/topic/user-registration-toggle-option/)
 *  Thread Starter [Gytis Repečka](https://wordpress.org/support/users/kelmas/)
 * (@kelmas)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/user-registration-toggle-option/#post-13764967)
 * Awesome, works exactly as expected 👍
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Single Sign On] Can’t login to site after WP-OAuth server update](https://wordpress.org/support/topic/cant-login-to-site-after-wp-oauth-server-update/)
 *  Thread Starter [Gytis Repečka](https://wordpress.org/support/users/kelmas/)
 * (@kelmas)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cant-login-to-site-after-wp-oauth-server-update/#post-13764923)
 * It works after upgrading **WP OAuth Server – Pro** to version **4.1.5**.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Seriously Simple Podcasting] wavesurfer.js is loaded from Cloudflare](https://wordpress.org/support/topic/wavesurfer-js-is-loaded-from-cloudflare/)
 *  Thread Starter [Gytis Repečka](https://wordpress.org/support/users/kelmas/)
 * (@kelmas)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/wavesurfer-js-is-loaded-from-cloudflare/#post-13754114)
 * Problem solved, thanks so much!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Single Sign On] Can’t login to site after WP-OAuth server update](https://wordpress.org/support/topic/cant-login-to-site-after-wp-oauth-server-update/)
 *  Thread Starter [Gytis Repečka](https://wordpress.org/support/users/kelmas/)
 * (@kelmas)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cant-login-to-site-after-wp-oauth-server-update/#post-13740138)
 * You mean update server or client plugin (Simple Single Sign On)?
 * Updated server (WP OAuth Server – Pro) to version 4.1.2 but it is the same – 
   client with **Simple Single Sign On** 2.0.0 cannot connect showing the same error:
 * `Authorization code doesn't exist or is invalid for the client`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Seriously Simple Podcasting] wavesurfer.js is loaded from Cloudflare](https://wordpress.org/support/topic/wavesurfer-js-is-loaded-from-cloudflare/)
 *  Thread Starter [Gytis Repečka](https://wordpress.org/support/users/kelmas/)
 * (@kelmas)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/wavesurfer-js-is-loaded-from-cloudflare/#post-13724161)
 * Any updates so far?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Seriously Simple Podcasting] wavesurfer.js is loaded from Cloudflare](https://wordpress.org/support/topic/wavesurfer-js-is-loaded-from-cloudflare/)
 *  Thread Starter [Gytis Repečka](https://wordpress.org/support/users/kelmas/)
 * (@kelmas)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/wavesurfer-js-is-loaded-from-cloudflare/#post-13562532)
 * Thanks, looking forward to new version then!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Redirect Login to WooCommerce "My account" Page] Does not work with Two Factor plugin](https://wordpress.org/support/topic/does-not-work-with-two-factor-plugin/)
 *  Thread Starter [Gytis Repečka](https://wordpress.org/support/users/kelmas/)
 * (@kelmas)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/does-not-work-with-two-factor-plugin/#post-13348473)
 * Thanks, this solution works smooth.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Redirect Login to WooCommerce "My account" Page] Does not work with Two Factor plugin](https://wordpress.org/support/topic/does-not-work-with-two-factor-plugin/)
 *  Thread Starter [Gytis Repečka](https://wordpress.org/support/users/kelmas/)
 * (@kelmas)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/does-not-work-with-two-factor-plugin/#post-13344641)
 * It is enough to add `validate_2fa` to following array:
 * `if('wp-login.php' == $pagenow && (!isset($_GET['action']) || !in_array($_GET['
   action'], array("logout", "rp", "resetpass", "resetpassword", "enter_recovery_mode","
   validate_2fa"))) && !isset($_REQUEST['interim-login'])) {`
 * Of course we could first check if `two-factor/two-factor.php` plugin exists or
   not and then append `validate_2fa` to array but it requires a bit of refactoring
   then.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Two Factor] Does this plugin support WooCommerce?](https://wordpress.org/support/topic/does-this-plugin-support-woocommerce-2/)
 *  [Gytis Repečka](https://wordpress.org/support/users/kelmas/)
 * (@kelmas)
 * [6 years ago](https://wordpress.org/support/topic/does-this-plugin-support-woocommerce-2/#post-12790449)
 * Here is my attempt to bring Two-Factor settings to front-end (thus becoming available
   for WooCommerce users to see):
 * Edited `class-two-factor-core.php`: following WordPress hooks (`edit_user_profile`
   and `edit_user_profile_update`) I have used corresponding functions in WooCommerce
   hooks:
 *     ```
       add_action( 'woocommerce_edit_account_form', array( __CLASS__, 'user_two_factor_options' ) );
       add_action( 'woocommerce_update_customer', array( __CLASS__, 'user_two_factor_options_update' ) );
       ```
   
 * Edit part worked fine – settings were saved. However, form was broken: in the
   end of function `user_two_factor_options` there is `do_action( 'show_user_security_settings',
   $user );` which in the frontend exited further rendering of page. So I created
   a copy of `user_two_factor_options` function and commented that code out – in
   this case form was rendered nicely in WooCommerce’s `my-account/edit-account`
   page.
 * However, JavaScripts didn’t work – I couldn’t see QR code nor any other JavaScript-
   based elements. Any tips on that? Perhaps something is reused from `wp-admin`
   components that are not available on frontend?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Two Factor] Does this plugin support WooCommerce?](https://wordpress.org/support/topic/does-this-plugin-support-woocommerce-2/)
 *  [Gytis Repečka](https://wordpress.org/support/users/kelmas/)
 * (@kelmas)
 * [6 years ago](https://wordpress.org/support/topic/does-this-plugin-support-woocommerce-2/#post-12785981)
 * Anyone working on frontend part for WooCommerce?
 * I was thinking perhaps having shortcode in my-account page could be created to
   display user secret QR code.
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Termly - GDPR/CCPA Cookie Consent Banner] Good but Tracking is not welcome](https://wordpress.org/support/topic/good-but-tracking-is-not-welcome/)
 *  [Gytis Repečka](https://wordpress.org/support/users/kelmas/)
 * (@kelmas)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/good-but-tracking-is-not-welcome/#post-8967480)
 * I personally don’t like such kind of trackers embedded into plugins.
 * However, my quick insight to file **tracking/class-plugin-usage-tracker.php**
   that hosts function **get_is_tracking_allowed** (line #343) and **set_is_tracking_allowed**(
   line #358) suggests plugin respects user’s setting.
 * More can be seen here:
 *     ```
       		/**
       		 * This is our function to get everything going
       		 * Check that user has opted in
       		 * Collect data
       		 * Then send it back
       		 *
       		 * @since 1.0.0
       		 */
       		public function do_tracking() {
       			// If the home site hasn't been defined, we just drop out. Nothing much we can do.
       			if ( ! $this->home_url ) {
       				return;
       			}
   
       			// Check to see if the user has opted in to tracking
       			$allow_tracking = $this->get_is_tracking_allowed();
       			if( ! $allow_tracking ) {
       				return;
       			}
   
       			// Get our data
       			$body = $this->get_data();
   
       			// Send the data
       			$this->send_data( $body );
   
       		}
       ```
   
 * And from options:
    `SELECT * FROM wp_options WHERE option_name LIKE '%wisdom%';`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SI CAPTCHA Anti-Spam] Not compatible with caching plugin (W3TC)](https://wordpress.org/support/topic/not-compatible-with-caching-plugin-w3tc/)
 *  Thread Starter [Gytis Repečka](https://wordpress.org/support/users/kelmas/)
 * (@kelmas)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/not-compatible-with-caching-plugin-w3tc/#post-8818296)
 * Thanks, **Fast Secure reCAPTCHA** works fine with W3TC.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Widget Logic] Incorrect “Widget Logic team security recommendation”](https://wordpress.org/support/topic/incorrect-widget-logic-team-security-recommendation/)
 *  [Gytis Repečka](https://wordpress.org/support/users/kelmas/)
 * (@kelmas)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/incorrect-widget-logic-team-security-recommendation/page/2/#post-8811790)
 * I also switched to [Widget Options](https://wordpress.org/plugins/widget-options/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Compliance by Hu-manity.co] WP Super Cache problem](https://wordpress.org/support/topic/wp-super-cache-problem-7/)
 *  [Gytis Repečka](https://wordpress.org/support/users/kelmas/)
 * (@kelmas)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/wp-super-cache-problem-7/#post-8787791)
 * Indeed, we do have several use cases reported [in this thread](https://wordpress.org/support/topic/cookie-notice-not-compatible-with-w3-total-cache/).
 * > So we plan to move the entire cookie message into Javascript – it would be 
   > then entirely then with JS (and not mixed as it is now) fixing the possible
   > caching issues (hopefully).
 * The only solution is to always output cookie notice in HTML and rely on JavaScript
   only to decide whether to show the notice or hide. Until [@dfactory](https://wordpress.org/support/users/dfactory/)
   implements that, I’m sticking to [Cookie Consent](https://wordpress.org/plugins/uk-cookie-consent/)
   plugin which already works exactly like that. You can see it running just as 
   expected on [my site](https://repecka.net/en/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Compliance by Hu-manity.co] WPML with Cookie Notice](https://wordpress.org/support/topic/wpml-with-notice-cookie/)
 *  [Gytis Repečka](https://wordpress.org/support/users/kelmas/)
 * (@kelmas)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/wpml-with-notice-cookie/#post-8787757)
 * String Translation did the job in my case.

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/users/kelmas/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/kelmas/replies/page/2/?output_format=md)