我安装了Monkey Man Rewrite Analyzer,我安装了一个规则,它显示在列表中,如果我用Monkey Man测试它,它说它会启动,但实际上没有,怎么了?
add_action(\'init\', array($this, \'register_crr_jsonwebservice\'), 99);
public function register_crr_jsonwebservice() {
//Add the rewrite rule for this specific json controller
add_rewrite_tag( \'%ticket%\', \'([a-zA-Z0-9]+)\');
add_rewrite_rule( \'cjson/fullticket/([a-zA-Z0-9]+)/\', \'index.php?p=1312&ticket=$matches[1]\', \'top\' );
flush_rewrite_rules();
}
在MMRA中测试此规则:cjson/全票/231412tgsxcasfasdfas/
工作正常,直接在wordpress上复制相同的url进行测试?404,未找到。。。我做错了什么?