Definition:
function add_permastruct($name, $struct, $with_front = true, $ep_mask = EP_NONE) {}
Add permalink structure.
Parameters
- string $name: Name for permalink structure.
- string $struct: Permalink structure.
- bool $with_front: Prepend front base to permalink structure.
- $ep_mask
Source code
function add_permastruct($name, $struct, $with_front = true, $ep_mask = EP_NONE) { if ( $with_front ) $struct = $this->front . $struct; else $struct = $this->root . $struct; $this->extra_permastructs[$name] = array($struct, $ep_mask); }
275
No comments yet... Be the first to leave a reply!