//========== //NO LOGOUT CONFIRMATION /* add_action('check_admin_referer', 'logout_without_confirm', 10, 2); function logout_without_confirm($action, $result) { if ($action…
Rename Sidebar „Add New“ Label
In the Total theme i.e. for the portfolio or staff custom post types, the menu labels are not properly translated. This is how to fix this:
add_filter('register_post_type_args', function($args, $post_type) {
if ($post_type === 'portfolio') {
$args['labels']['add_new'] = 'Neu';
$args['labels']['add_new_item'] = 'Film hinzufügen';
}
return $args;
}, 10, 2);
