wpseek.com
A WordPress-centric search engine for devs and theme authors
add_permastruct › WordPress Function
Since3.0.0
Deprecatedn/a
› add_permastruct ( $name, $struct, $args = array() )
Parameters: (3) |
|
See: |
|
Defined at: |
|
Codex: |
Adds a permalink structure.
Source
function add_permastruct( $name, $struct, $args = array() ) { global $wp_rewrite; // Back-compat for the old parameters: $with_front and $ep_mask. if ( ! is_array( $args ) ) { $args = array( 'with_front' => $args ); } if ( func_num_args() === 4 ) { $args['ep_mask'] = func_get_arg( 3 ); } $wp_rewrite->add_permastruct( $name, $struct, $args ); }