Skip to content

Instantly share code, notes, and snippets.

View Axel186's full-sized avatar
🖥️
AXE-WEB - Your Tech Partner

Roman Axelrod Axel186

🖥️
AXE-WEB - Your Tech Partner
View GitHub Profile
use Carbon_Fields\Container;
use Carbon_Fields\Field;
add_action( 'carbon_fields_register_fields', 'crb_attach_theme_options' );
function crb_attach_theme_options() {
Container::make( 'theme_options', __( 'Theme Options', 'crb' ) )
->add_fields( array(
Field::make('text', 'crb_text', 'Text Field' ),
Field::make('association', 'crb_association', 'Association'),
Field::make('checkbox', 'crb_checkbox', 'Checkbox')