Core Function
View Source on Trac ↗ add_permastruct()
add_permastruct( mixed $name, mixed $struct, mixed $args = array() ) Adds a permalink structure.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $name string | Name for permalink structure. Required |
| $struct string | Permalink structure. Required |
| array | $args Optional. Arguments for building the rules from the permalink structure, see WP_Rewrite::add_permastruct() for full details. Default empty array. Required |
Return Value
(void)
No return value description available.
Function Information
Since Version
3.0.0
Source File
wp-includes/rewrite.php
Advertisement