Here is my situation: I am trying to filter the title in my custom post type edit table but I can’t get it working.

Here is what I have tried:

add_filter('manage_edit-mycpt_columns', 'replace_title_products');
function replace_title_products() {
    $oldtitle = get_the_title();
    $newtitle = str_replace(array("<span class='sub-title'>", "</span>"), array("", ""),$oldtitle);
    $title = esc_attr($newtitle);  
}

I just want to filter the “” tags in my title. Could someone help me please?

Thanks!

Read more here: Replacing the title in admin list table


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , ,

Wordpress related questions and answers: