• I’m making a plugin where the user can make some post a page and a category
    for a musicband.
    on my admin page i have a delete link where all the post must be
    deleted but also the category when cliked on.
    so far i have a function for that url:

    function delete_band_link($link = ‘Verwijder’ ,$before = ”, $after = ”, $band= NULL){
    if(is_null($band)){
    return;
    }
    if($band->post_type != page){
    return;
    } else {
    if(!current_user_can(‘edit_post’,$band->ID)){
    return;
    }
    }
    $delete_link_page = get_delete_post_link($band->ID,”,true);
    $link = ‘‘ . $link .’‘;
    echo $before . $link . $after;
    }

    My question now is, how to put the other delete url’s in their?

The topic ‘multi delete url on link’ is closed to new replies.