I've read this post
and although it's quite an old question, it suits me perfectly. I'm trying to accomplish what I already posted here:
But in the code below, only the first filter gets called while in wp-admin:
add_action('init', array('MYCLASS', 'add_custom_rewrite_rules'), 10, 1); add_action('query_vars', array('MYCLASS', 'add_custom_query_vars'), 10, 1); add_action('parse_request', array('MYCLASS', 'add_custom_parse_request'), 10, 1);
I can't get this to work. It seems the two last filters are not called while navigating inside wp-admin. Is that true? How can I get around this?