yurako
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: database is not updated after flushing urlsOk, I’ll try to search for the problematic one….
Thank you very very much @keesiemeijer!!
Forum: Fixing WordPress
In reply to: database is not updated after flushing urlsThank you @keesiemeijer!
Do you suspect that there is another plugin/current theme that actually rewrites_rules and actually overrides my changes?
P.S. If so, which event can I hook my rewrite to? I know that hooking to ‘init’ is expensive. Which one would be good?
ThanksForum: Fixing WordPress
In reply to: database is not updated after flushing urlshm… well, it does update and everything works fine as long and the line is not commented.
I supposed that this should update the database and then it is possible to comment the line, however, once the line is commented => the rewirites do NOT work.
?? 😮 ??
Forum: Fixing WordPress
In reply to: database is not updated after flushing urlsThanks Sunder Deep Dasna. I read it.
$wp_rewrite->flush_rules(); WORKS PERFECT!
but does NOT work is after I comment it //$wp_rewrite->flush_rules();
Why? Wasn’t the database updated and then I can comment?
Forum: Fixing WordPress
In reply to: Can I comment "flush" after flushing urls?Oh, this is a typo here…
Its actually
add_action( 'init', 'mydid_add_rewrite_rules' ); function mydid_add_rewrite_rules() { global $wp_rewrite; add_rewrite_rule(....); .... Added some rewrite rules here... $wp_rewrite->flush_rules(); }The problem is that after I run – everything IS FINE.
but the I comment the $wp_rewrite->flush_rules(); and it stops working.Why?
Thanks