Monday, June 27, 2022
HomeWordPress DevelopmentConceal customized column in admin template display (Elementor)

Conceal customized column in admin template display (Elementor)


My plugin provides a customized column to admin posts and pages screens but it surely’s additionally including it to the Templates (Elementor) display. I do know customers can conceal this themselves, however I might fairly do it in my plugin.

The web page the place I need to take away the column is:
edit.php?post_type=elementor_library&tabs_group=library&mode=checklist

The customized column was added utilizing this code:

add_filter('manage_pages_columns', 'customfield_add_column', 5);
add_action('manage_pages_custom_column', 'customfield_add_column_values', 5, 2);
add_filter('manage_posts_columns', 'customfield_add_column', 5);
add_action('manage_posts_custom_column', 'customfield_add_column_values', 5, 2);

perform customfield_add_column($defaults){
    // discipline vs displayed title
    $defaults['my_custom_field'] = __('MyField');
    return $defaults;
}

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments