%PDF- %PDF-
Direktori : /var/www/html/qendrasteps/wp-content/themes/tm-heli/core/kirki/docs/docs/arguments/ |
Current File : /var/www/html/qendrasteps/wp-content/themes/tm-heli/core/kirki/docs/docs/arguments/settings.md |
--- layout: default title: settings published: true mainMaxWidth: 50rem; --- `settings` is a mandatory argument for any field. The value entered here will be used to store the settings in the database. If for example you create a field using something like this: ```php Kirki::add_field( 'global', array( 'type' => 'color', 'settings' => 'body_background_color', 'label' => esc_attr__( 'This is the label', 'my_textdomain' ), 'section' => 'my_section', 'default' => '#0088CC', 'priority' => 10, ) ); ``` then in your theme you can access that value using: ```php <?php $color = get_theme_mod( 'body_background_color', '#0088CC' ); ?> ```