[wp-testers] permalink hooks...

DD32 wordpress at dd32.id.au
Mon Dec 3 01:49:11 GMT 2007


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 <dan at instinct.co.nz> 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
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
> 





More information about the wp-testers mailing list