0

I need to add a link here, beside the Published link:

enter image description here

How can I do it? I'm trying to filter my custom post type by meta values and need a link to do it.

Thanks.

1 Answer 1

0

Already got it:

add_action( 'views_edit-post', 'remove_edit_post_views' );
function remove_edit_post_views( $views ) {
        $views['pre'] = '<a class="'.$class.'" href="'.admin_url().'edit.php?yourlink">Name of Sort</a>';
        return $views;
}

Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.