FEAT modified ACF gallery add button text to "Ajouter des photos 📸" for improved clarity in the admin interface
This commit is contained in:
parent
1a2d15427c
commit
81b5e8432d
|
|
@ -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');
|
||||||
|
});
|
||||||
|
");
|
||||||
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user