Say we have a page that is generated automatically by our plugin and the
URL is site.com/product_page/
Now lets imagine the user turns permalinks off and
site.com/product_page/ suddenly becomes site.com/?p=16
Currently there is no hook for us to detect permalink changes so we can
not change the URL in the plugin settings to match things accordingly.
At present if a user changes their permalinks they have to refresh the
page URLs manually by clicking a link in the WP e-Commerce settings or
their site will break (they will get a 404 error).
It would make much more sense if this whole process was automated by a
hook that detected permalink changes.
Ciao,
Dan
DD32 wrote:
Not a hook as such.. But, that seems a bit odd question to me, If they're not
turned on, then they're turned off correct?
//Are we using permalinks?
global $wp_rewrite;
if( ! $wp_rewrite || ! $wp_rewrite->using_permalinks() ){
//No Permalinks
} else {
//Permalinks are enabled
}
On Mon, 03 Dec 2007 12:44:28 +1100, Dan Milward <[EMAIL PROTECTED]> wrote:
Is there a hook to check when the administrator turns permalinks off.
There is for checking when they are turned on or changed which is handy
when making our own rewrite rules - but some things will need to be
changed when permalinks are turned off....
We can find no plugin hooks to do this currently.
Ciao,
Dan
_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers
_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers
_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers