add_permastruct [ WordPress Function ]
add_permastruct ( $name, $struct, $args = array() )
| Parameters: |
|
| See: |
|
| Defined at: |
|
Add permalink structure.
Source
<?php
function add_permastruct( $name, $struct, $args = array() ) {
global $wp_rewrite;
// backwards compatibility 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 );
return $wp_rewrite->add_permastruct( $name, $struct, $args );
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- WordPress › Support » New tag in add_permastruct doesn't appear ...
Hi all,. I'm absolutely baffled as to why this isn't working. I think I must be missing something. I'm trying to add an alphabetical list of authors to a site with lots of ...
wordpress.org - Docs For Class WP_Rewrite
void add_permastruct (string $name, string $struct, [array $args = array()]). void add_rewrite_tag (string $tag, string $regex, string $query). void add_rule (string ...
phpdoc.wordpress.org - Function Reference/add permastruct « WordPress Codex
Description. add_permastruct() allows you to specify additional permalink structures for WordPress. It is most commonly used in conjunction with ...
codex.wordpress.org - add_permastruct | A HitchHackers guide through WordPress
Feb 11, 2011 ... function add_permastruct($name, $struct, $with_front = true, $ep_mask = EP_NONE) { if ( $with_front ) $struct = $this->front . $struct; else ...
hitchhackerguide.com