wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
add_permastruct › WordPress Function
Depuis3.0.0
Dépréciéen/a
› add_permastruct ( $name, $struct, $args = array() )
| Paramètres: (3) |
|
| Voir: |
|
| Défini(e) dans: |
|
| Codex: |
Adds a permalink structure.
Fonctions en relation: remove_permastruct, add_post_meta, add_query_arg, add_term_meta, add_user_meta
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 );
}