bbp_get_view_link

  • apply_filters( 'bbp_get_view_link', $url, $view )

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-common-template.php :: Trac Source Line: 1302
      		if ( $wp_rewrite->using_permalinks() ) {
      			$url = $wp_rewrite->root . $bbp->view_slug . '/' . $view;
      			$url = home_url( user_trailingslashit( $url ) );
      
      		// Unpretty permalinks
      		} else {
      			$url = add_query_arg( array( 'bbp_view' => $view ), home_url( '/' ) );
      		}
      
      		return apply_filters( 'bbp_get_view_link', $url, $view );
      	}
      
      /** Query *********************************************************************/
      
      /**
       * Check the passed parameter against the current _bbp_query_name
       *
       * @since bbPress (r2980)
       *
       * @uses bbp_get_query_name() Get the query var '_bbp_query_name'
      

Comments are closed.