Lukasz
Forum Replies Created
-
This sounds similar to my issue https://ww.wp.xz.cn/support/topic/new-phone-best-way-to-reset-two-factor-auth/
Difference is that I reset the users 2FA config, and upon signing back in they were never promoted to enter authentication code even though I have it setup as mandatory with no grace period.
Update on this, I reset the user through the admin profile “reset 2FA configuration”
Only issue is, upon signing in again there was no two-factor authentication prompt even though I have it set to mandatory for all users with no grace period.
Will it eventually ask the user to set it up?
Latest Update adds Okta support! Bonus star if I could!
Forum: Fixing WordPress
In reply to: WordPress REST API – returning incorrect localeThank you @bcworkz ! I used hidden input field in form with value of current locale.
/** * Override WP install locale * * @param string $locale Current locale. * * @return string French (en_CA) locale if $_POST['cf_locale'] === 'fr_CA', * configured locale otherwise. */ function force_alternate_local( $locale ) { // Form hidden input if ( $_POST['cf_locale'] === 'fr_CA' ) { $locale = 'fr_CA'; } else{ $locale = 'en_CA'; } return $locale; } add_filter( 'locale', 'force_alternate_local', 1, 1 );Sorry about the confusion with forcing switch_to_locale, was just trying to show that it is possible to get alternative language loaded but I didn;t want it forced permanently.
- This reply was modified 6 years, 3 months ago by Lukasz.
Forum: Reviews
In reply to: [PWA] Huge performance boost and easy to configureI should of made note of that since I don’t remember previous numbers but..
Page load times as low as 160ms !
I don’t remember what the score was but now it is about 88 for performance and I have a full PWA badge. I sometimes reach 93 score but depends on server and how optimized everything is of course.
I think more important than the numbers is how it feels, there’s no wait time in between, the pages load instantly, feels like a native app.
I should also add I’m using instant.page plugin, which “uses just-in-time preloading β it preloads a page right before a user clicks on it.”
Thanks @hcabrera, that solved it for me! That makes sense, I initially used pll_get_post function but did not add pll_default_language to it.
Thanks again!
Forum: Fixing WordPress
In reply to: Can I remove Cron-job@chandan115 It’s very common to disable wp-cron.php, since it gets hit every single page load, this can impact performance.
What I do is disable wp-cron.php and then I got my hosting company to do a real cron job from the SERVER, the cron job hits wp-cron.php, in my case only once a day at midnight, I don’t need it any more often. You can schedule it every 6 hours, 15 minutes, etc, whatever you feel you need, performance will be much better then it being hit every page load.
Trying to find a way to disable a cron job for every single plugin individually will be too much effort and most likely not possible.
Here is a article describing how to do this:
https://kinsta.com/knowledgebase/disable-wp-cron/Forum: Fixing WordPress
In reply to: Can I remove Cron-jobYou can disable WordPress cron for better performance, in wp-config.php add this:
/** Disable cron */ define( 'DISABLE_WP_CRON', true );Forum: Developing with WordPress
In reply to: Bootstrap modal window contact formYou are missing alot, you shouldn’t
echo βsend.phpβ;Here’s a tutorial to get you started:
https://www.sitepoint.com/build-your-own-wordpress-contact-form-plugin-in-5-minutes/
This is currently not possible but there is an active ticket:
Forum: Plugins
In reply to: [Pre-Publish Checklist] Feature request: Custom checklist per post typeSounds good π
Forum: Plugins
In reply to: [Gutenberg] Remove column settings panelOkay great, thanks for the help!
Forum: Plugins
In reply to: [Gutenberg] Remove column settings panelhi @ellatrix thanks for replying,
I was thinking of removing the column settings, so a end user can not make modifications to the width through the range control, I prefer to just create my own column layouts that the user can pick from:
https://github.com/WordPress/gutenberg/pull/16129
Thanks!
Forum: Plugins
In reply to: [Pre-Publish Checklist] Feature request: Custom checklist per post typeNice plugin overall, but I noticed this limitation as well.
Forum: Fixing WordPress
In reply to: Unable to update my blog postsO wow that’s unexpected, but good to know, glad it worked out for you!