49 lines
793 B
PHP
49 lines
793 B
PHP
<?php
|
|
|
|
/*
|
|
* it means someone outside wp is accessing the file, in this case kill it.
|
|
*/
|
|
if (!defined('ABSPATH')) {
|
|
die('You can not access this file!');
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
* 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
|
|
*
|
|
*/
|
|
function admin_user_profil_css_CIPF() {
|
|
Plgntls::debug_infos();
|
|
$role_fipf = Cipf::ROLE_FIPF;
|
|
|
|
/*
|
|
* for everyone viewing user profil
|
|
*
|
|
*/
|
|
Plgntls::add_to_front(array('css/user_profile.css', 'css/acf_fields.css'));
|
|
|
|
if (!current_user_can($role_fipf)) {
|
|
return;
|
|
}
|
|
|
|
/*
|
|
* for fipf viewing user profil
|
|
*
|
|
*/
|
|
Plgntls::add_to_front(array('css/fipf_user_profile.css'));
|
|
}
|
|
add_action('user_edit_form_tag', 'admin_user_profil_css_CIPF');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|