• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

WP-Toolkit update broke permalinks

We face the same issue here. I was wondering if the wp function flush_rewrite_rules() could be a solution for all of us by placing it in an according wordpress hook. But I can‘t figure out which hook should be used :S Has anybody an idea? Or is the shell script with a cron runner the only solution at the moment?

Btw. I refer to the thread start initial issue that permalinks of crp are broken after wptoolkit do his magic automated stuff.
 
We face the same issue here. I was wondering if the wp function flush_rewrite_rules() could be a solution for all of us by placing it in an according wordpress hook. But I can‘t figure out which hook should be used :S Has anybody an idea? Or is the shell script with a cron runner the only solution at the moment?

Btw. I refer to the thread start initial issue that permalinks of crp are broken after wptoolkit do his magic automated stuff.

That's what I tried to do and was pretty sure it would solve this issue. But, it didn't.
Maybe the "upgrader_process_complete" isn't the right hook in this case. This is the code I used:

Code:
function do_rewrites() {
  flush_rewrite_rules();
}

add_action( 'after_switch_theme', 'do_rewrites' );
add_action( 'upgrader_process_complete', 'do_rewrites' );
 
  • Like
Reactions: sp7
That's what I tried to do and was pretty sure it would solve this issue. But, it didn't.
Maybe the "upgrader_process_complete" isn't the right hook in this case. This is the code I used:

Code:
function do_rewrites() {
  flush_rewrite_rules();
}

add_action( 'after_switch_theme', 'do_rewrites' );
add_action( 'upgrader_process_complete', 'do_rewrites' );

Thanks for your response. Such bad luck we just wanted to try the after_switch_theme. Than we search on for other hooks. Mean a while hopefully someone find a hook or a handy workaround that could solve this issue. A cron with a low interval is too consuming :/

Edit: The latest solution we faced in our agency for that is to disable the whole automatic update functionallity and create a weekly cron script that fires the update of all instances manually and afterwards rebuilds the permalinks over the shell script above.
 
Last edited:
Back
Top