PHP Class CPTP_Module_Permalink, custom-post-type-permalinks

Override Permalinks
Since: 0.9.4
Inheritance: extends CPTP_Module
Mostrar archivo Open project: torounit/custom-post-type-permalinks

Public Methods

Method Description
add_hook ( ) Add Filter Hooks.
attachment_link ( string $link, integer $post_id ) : string fix attachment output
post_type_link ( String $post_link, WP_Post $post, String $leavename ) : string Fix permalinks output.
term_link ( string $termlink, Object $term, Object $taxonomy ) : string Fix taxonomy link outputs.

Private Methods

Method Description
create_taxonomy_replace_tag ( integer $post_id, string $permalink ) : array create %tax% -> term
get_term_parent ( WP_Term | stdClass $term ) : mixed get parent from term Object

Method Details

add_hook() public method

Add Filter Hooks.
public add_hook ( )

post_type_link() public method

Fix permalinks output.
public post_type_link ( String $post_link, WP_Post $post, String $leavename ) : string
$post_link String
$post WP_Post
$leavename String for edit.php
return string