Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_edit_term_link [ WordPress Function ]

get_edit_term_link ( $term_id, $taxonomy, $object_type = '' )
Parameters:
  • (int) $term_id Term ID
  • (string) $taxonomy Taxonomy
  • (string) $object_type The object type
Returns:
  • (string)
Defined at:



Retrieve edit term url.

Source


<?php
function get_edit_term_link$term_id$taxonomy$object_type '' ) {
    
$tax get_taxonomy$taxonomy );
    if ( !
current_user_can$tax->cap->edit_terms ) )
        return;

    
$term get_term$term_id$taxonomy );

    
$args = array(
        
'action' => 'edit',
        
'taxonomy' => $taxonomy,
        
'tag_ID' => $term->term_id,
    );

    if ( 
$object_type )
        
$args['post_type'] = $object_type;

    
$location add_query_arg$argsadmin_url'edit-tags.php' ) );

    return 
apply_filters'get_edit_term_link'$location$term_id$taxonomy$object_type );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics