Tag Info

Hot answers tagged

2

There's no way to set this text directly. But, the "Empty Trash" text is run through the translation API before display. You can hijack this translation to replace the text with your own string. get_current_screen() is used to check the post_type of the current admin screen, so you can make sure you're only affecting your "task" type's screens. add_filter( ...


1

I know this post is somewhat older, but I thought I would point out that the previous answer only works if there is always a title. If you want to make sure that only the content of the widget gets wrapped in a panel-body class, you might want to try something like this: function my_widget_content_wrap($content) { $content = '<div ...



Only top voted, non community-wiki answers of a minimum length are eligible