get_edit_term_link()

This WordPress function requires the CPT-onomy class.

Description

Retrieves the URL for editing the term, aka post.

Usage

$cpt_onomy->get_edit_term_link( 						int
						$term_id
						, 						string
						$cpt_onomy
						 );

Parameters

$term_id (integer) (required)
Default: none
The term ID.

$cpt_onomy (string) (required)
Default: none
Name of the CPT-onomy.

Return Values

(string) URL to edit the term, aka post.

Examples

<?php

global $cpt_onomy;
$terms = get_terms( 'actors' );
if ( !empty( $terms ) ) {
   echo '<ul>';
   foreach ( $terms as $term ) {
      echo '<li><a href="' . $cpt_onomy->get_edit_term_link( $term->term_id, $term->taxonomy ) . '">' . $term->name . '</a></li>';
   }
   echo '</ul>';
}

?>