improved check before sending reminder emails

This commit is contained in:
asus
2024-04-10 11:55:28 +02:00
parent 215d778307
commit 5cde5cd913
9 changed files with 231 additions and 68 deletions

View File

@@ -11,19 +11,32 @@ if (!defined('ABSPATH')) {
/*
* load css for when fipf is weing user profil in admin
* 278 : ../../../wordpress_docker/volumes/wp_volume/wp-admin/user-edit.php
*
function admin_user_profil_css_CIPF($user_id) {
*/
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'));
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');