Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function prepare_links() {
- if ( ! is_array( $this->crumbs ) || $this->crumbs === array() ) {
- return;
- }
- foreach ( $this->crumbs as $i => $crumb ) {
- // Keep pre-set url/text combis.
- $link_info = $crumb;
- if ( isset( $crumb['id'] ) ) {
- $link_info = $this->get_link_info_for_id( $crumb['id'] );
- }
- if ( isset( $crumb['term'] ) ) {
- $link_info = $this->get_link_info_for_term( $crumb['term'] );
- }
- // Эта часть кода выводит не нужную мне ссылку
- if ( isset( $crumb['ptarchive'] ) ) {
- $link_info = $this->get_link_info_for_ptarchive( $crumb['ptarchive'] );
- }
- // конец
- $this->links[] = $this->crumb_to_link( $link_info, $i );
- }
- }
Add Comment
Please, Sign In to add comment