From 81b5e8432d9e4ca5438c6ea12b23ffdb5fe14ba7 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Tue, 8 Apr 2025 15:40:27 +0200 Subject: [PATCH] =?UTF-8?q?FEAT=20modified=20ACF=20gallery=20add=20button?= =?UTF-8?q?=20text=20to=20"Ajouter=20des=20photos=20=F0=9F=93=B8"=20for=20?= =?UTF-8?q?improved=20clarity=20in=20the=20admin=20interface?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/artisans.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/includes/artisans.php b/includes/artisans.php index c3c7a23..9ca64f5 100644 --- a/includes/artisans.php +++ b/includes/artisans.php @@ -315,3 +315,16 @@ function add_last_modified_date_to_publish_box() // 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'); + }); + "); +});