AnsPress_Rewrite::rewrite_rules()
Description #
Generate rewrite rules for AnsPress.
Source #
File: includes/rewrite.php
public static function rewrite_rules() { global $wp_rewrite; $q_struct = AnsPress_PostTypes::question_perm_structure(); $rules = $wp_rewrite->generate_rewrite_rules( $q_struct->rule, EP_NONE, false, false, true ); $rule = key( $rules ); anspress()->question_rule = array( 'rule' => substr( $rule, 0, -3 ), 'rewrite' => reset( $rules ), ); }
Expand full source code Collapse full source code View on GitHub: includes/rewrite.php:87
Add your comment