[wp-hackers] update_option problem

aesqe aesqe at skyphe.org
Wed May 13 23:59:18 GMT 2009


Hi all :)

I've been trying to figure out why the following doesn't work:

<?php
/*
Plugin Name: permalink check
Plugin URI: ...
Description: ...
Author: ...
Version: 1.0
Author URI: ...
*/

function permalinkage()
{
	global $wp_rewrite;
	echo $wp_rewrite->get_category_permastruct();
}
add_action('update_option_permalink_structure', 'permalinkage');
?>

Permalink structure gets updated, but get_category_permastruct() returns 
previous value each time.

Is this related to option caching, maybe?

Any ideas would be greatly appreciated.

Thanks!

-- 
-._______________KAWAII!_______________.-
Skyphe.org : It'll all make sense one day
http://skyphe.org .:. http://breedart.org


More information about the wp-hackers mailing list