Tags::term_link_filter( string $url, object $term, string $taxonomy )
Description #
Filter tag term link.
Parameters #
- $urlstring (Required) Default URL of taxonomy.
- $termobject (Required) Term array.
- $taxonomystring (Required) Taxonomy type.
Source #
File: addons/tags/tags.php
public function term_link_filter( $url, $term, $taxonomy ) { if ( 'question_tag' === $taxonomy ) { if ( get_option( 'permalink_structure' ) !== '' ) { $opt = get_option( 'ap_tags_path', 'tags' ); return user_trailingslashit( home_url( $opt ) . '/' . $term->slug ); } else { return add_query_arg( array( 'ap_page' => 'tag', 'question_tag' => $term->slug, ), home_url() ); } } return $url; }
Expand full source code Collapse full source code View on GitHub: addons/tags/tags.php:365
Add your comment