Changeset 34712
- Timestamp:
- 09/30/2015 02:41:49 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rewrite-functions.php
r34708 r34712 17 17 * @param string $regex Regular Expression to match request against. 18 18 * @param string|array $redirect Page to redirect to, or array of query vars and values. 19 * @param string $after Optional, default is 'bottom'. Where to add rule, can also be 'top'. 19 * @param string $after Optional. Location where to insert the new rule. Accepts 'top', 20 * or 'bottom'. Default 'bottom'. 20 21 */ 21 22 function add_rewrite_rule( $regex, $redirect, $after = 'bottom' ) { … … 39 40 * @param string $tag Name of the new rewrite tag. 40 41 * @param string $regex Regular expression to substitute the tag for in rewrite rules. 41 * @param string $query String to append to the rewritten query. Must end in '='. Optional.42 * @param string $query Optional. String to append to the rewritten query. Must end in '='. Default empty. 42 43 */ 43 44 function add_rewrite_tag( $tag, $regex, $query = '' ) { … … 62 63 * @since 3.0.0 63 64 * 65 * @see WP_Rewrite::add_permastruct() 64 66 * @global WP_Rewrite $wp_rewrite 65 67 * 66 68 * @param string $name Name for permalink structure. 67 69 * @param string $struct Permalink structure. 68 * @param array $args Optional configurationfor building the rules from the permalink structure,69 * see {@link WP_Rewrite::add_permastruct()} for full details.70 * @param array $args Optional. Arguments for building the rules from the permalink structure, 71 * see WP_Rewrite::add_permastruct() for full details. Default empty array. 70 72 */ 71 73 function add_permastruct( $name, $struct, $args = array() ) {
Note: See TracChangeset
for help on using the changeset viewer.