PHP Class CPTP_Module_Rewrite, custom-post-type-permalinks

Since: 0.9.4
Inheritance: extends CPTP_Module
Mostra file Open project: torounit/custom-post-type-permalinks

Public Methods

Method 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 method

public add_hook ( )

parse_request() public method

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

register_post_type_rules() public method

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 method

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
return void