added css and functions to make some acf fields read-only

This commit is contained in:
asus
2024-04-17 16:47:14 +02:00
parent 62dcaa7672
commit 3a1f0b07ee
7 changed files with 138 additions and 7 deletions

View File

@@ -12,10 +12,9 @@ if (!defined('ABSPATH')) {
/*
* load css for when fipf is weing user profil in admin
* load css for user profil admin page
* if fipf is weing user profil in admin, hide some fields
* 278 : ../../../wordpress_docker/volumes/wp_volume/wp-admin/user-edit.php
*
*/
@@ -27,7 +26,7 @@ function admin_user_profil_css_CIPF() {
* for everyone viewing user profil
*
*/
Plgntls::add_to_front(array('css/user_profile.css'));
Plgntls::add_to_front(array('css/user_profile.css', 'css/acf_fields.css'));
if (!current_user_can($role_fipf)) {
return;