public function add_hook()
{
add_filter('post_type_link', array($this, 'post_type_link'), apply_filters('cptp_post_type_link_priority', 0), 4);
add_filter('term_link', array($this, 'term_link'), apply_filters('cptp_term_link_priority', 0), 3);
add_filter('attachment_link', array($this, 'attachment_link'), apply_filters('cptp_attachment_link_priority', 20), 2);
}