Support

Account

Home Forums Backend Issues (wp-admin) Emojis are removed from ACF text field Reply To: Emojis are removed from ACF text field

  • I tried this code, but it’s not working, do you know why by any chance ?

    function my_acf_save_post( $post_id ) {

    if( isset($_POST[‘acf’][‘card_lancement_texte’]) ) {
    $_POST[‘acf’][‘card_lancement_texte’] = urlencode($_POST[‘acf’][‘card_lancement_texte’]);
    }

    return $_POST[‘acf’][‘card_lancement_texte’];

    }
    add_action(‘acf/save_post’, ‘my_acf_save_post’, 5);