From ae30ee68dceca9eaa21b96a2eeddd77713a6ee5d Mon Sep 17 00:00:00 2001 From: Amos Lee Date: Thu, 7 Jan 2021 10:56:31 +0800 Subject: [PATCH] Add option container id Use container name as container id may couse fatal error in some environment when if the container name is non-ascii characters. add an explicit container id can avoid the error. --- documentation/10-quickstart.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/10-quickstart.md b/documentation/10-quickstart.md index b1b10e4..a954752 100644 --- a/documentation/10-quickstart.md +++ b/documentation/10-quickstart.md @@ -14,7 +14,7 @@ This guide will show you how to install the Carbon Fields library using composer add_action( 'carbon_fields_register_fields', 'crb_attach_theme_options' ); function crb_attach_theme_options() { - Container::make( 'theme_options', __( 'Theme Options', 'crb' ) ) + Container::make( 'theme_options', 'sample_theme_options', __( 'Theme Options', 'crb' ) ) ->add_fields( array( Field::make( 'text', 'crb_text', 'Text Field' ), ) );