1

I have created a custom post type by the name of Teams. Listing page looks like thisenter image description here

How can I change this highlighted title label?

Is there any hook for this that you know of?

1 Answer 1

1

The list_table_primary_column hook might be the one to go with, i.e:

add_filter('list_table_primary_column', 'teams_table_primary_column', 10, 2);

function teams_table_primary_column($colname, $screen_id) {
    if($screen_id == 'teams' && $colname == 'Title') {
        return "New column name";
    }
}

Note: this is completely untested, let me know how it goes!

Reference

1
  • I tested it. It works.
    – turzifer
    Commented Aug 17, 2023 at 9:06

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.