Compare commits
3 Commits
1a2d15427c
...
c26617174e
| Author | SHA1 | Date | |
|---|---|---|---|
| c26617174e | |||
| f20a40920b | |||
| 81b5e8432d |
|
|
@ -260,7 +260,7 @@ function reinsert_submitdiv_meta_box()
|
||||||
function de_activite_screen_options()
|
function de_activite_screen_options()
|
||||||
{
|
{
|
||||||
$current_user = wp_get_current_user();
|
$current_user = wp_get_current_user();
|
||||||
if ($current_user->roles[0] !== 'administrator') {
|
if (!empty($current_user->roles) && $current_user->roles[0] !== 'administrator') {
|
||||||
add_filter('screen_options_show_screen', '__return_false');
|
add_filter('screen_options_show_screen', '__return_false');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -315,3 +315,16 @@ function add_last_modified_date_to_publish_box()
|
||||||
|
|
||||||
|
|
||||||
// post_submit_meta_box($post, array('side' => 'core'));
|
// post_submit_meta_box($post, array('side' => 'core'));
|
||||||
|
|
||||||
|
|
||||||
|
/* -------------------------------------------------
|
||||||
|
CHANGE ACF GALLERY ADD BUTTON TEXT TO "Ajouter des photos 📸"
|
||||||
|
-------------------------------------------------*/
|
||||||
|
|
||||||
|
add_action('admin_enqueue_scripts', function () {
|
||||||
|
wp_add_inline_script('acf-input', "
|
||||||
|
jQuery(function($) {
|
||||||
|
$('.acf-gallery-add').text('🏞️ Ajouter des photos');
|
||||||
|
});
|
||||||
|
");
|
||||||
|
});
|
||||||
|
|
|
||||||
|
|
@ -636,6 +636,7 @@ select[data-enpassusermodified='yes'] {
|
||||||
}
|
}
|
||||||
|
|
||||||
.role-conseiller {
|
.role-conseiller {
|
||||||
|
#rank_math_metabox,
|
||||||
#menu-media,
|
#menu-media,
|
||||||
#menu-tools,
|
#menu-tools,
|
||||||
#toplevel_page_edit-tags-taxonomy-metiers-post_type-artisans,
|
#toplevel_page_edit-tags-taxonomy-metiers-post_type-artisans,
|
||||||
|
|
@ -727,3 +728,7 @@ select[data-enpassusermodified='yes'] {
|
||||||
li a[href='my-sites.php'] {
|
li a[href='my-sites.php'] {
|
||||||
@apply !hidden;
|
@apply !hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.acf-gallery-add {
|
||||||
|
@apply !bg-patrimoine-sante-securite !text-white !border-none !rounded-xl !px-4 !py-1 ml-auto;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user