Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




add_permastruct [ WordPress Function ]

add_permastruct ( $name, $struct, $args = array() )
Parameters:
  • (string) $name Name for permalink structure.
  • (string) $struct Permalink structure.
  • (array) $args Optional configuration for building the rules from the permalink structure, see {@link WP_Rewrite::add_permastruct()} for full details.
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() == )
        
$args['ep_mask'] = func_get_arg);

    return 
$wp_rewrite->add_permastruct$name$struct$args );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics