PHP Class CPTP_Module_Rewrite, custom-post-type-permalinks

Since: 0.9.4
Inheritance: extends CPTP_Module
Afficher le fichier Open project: torounit/custom-post-type-permalinks

Méthodes publiques

Méthode Description
add_hook ( )
parse_request ( WP $obj ) Fix taxonomy = parent/child => taxonomy => child
register_post_type_rules ( string $post_type, object $args ) register_post_type_rules ** add rewrite tag for Custom Post Type.
register_taxonomy_rules ( string $taxonomy, array | string $object_type, array | WP_Taxonomy $args ) : void register_taxonomy_rules

Method Details

add_hook() public méthode

public add_hook ( )

parse_request() public méthode

Fix taxonomy = parent/child => taxonomy => child
Since: 0.9.3
public parse_request ( WP $obj )
$obj WP

register_post_type_rules() public méthode

register_post_type_rules ** add rewrite tag for Custom Post Type.
Since: 0.9
public register_post_type_rules ( string $post_type, object $args )
$post_type string
$args object

register_taxonomy_rules() public méthode

register_taxonomy_rules
public register_taxonomy_rules ( string $taxonomy, array | string $object_type, array | WP_Taxonomy $args ) : void
$taxonomy string
$object_type array | string
$args array | WP_Taxonomy
Résultat void