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.



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;


| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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