Carbon-fields: Connecting a library without using hooks

Created on 30 Aug 2017  Β·  1Comment  Β·  Source: htmlburger/carbon-fields

Hello! In one project, I connect libraries and fields without using hooks. That is, I call them directly at the beginning of the functions.php file directly. Everything works fine. Can I have bugs with this connection in the future?

functions.php

<?php
// ΠŸΠΎΠ΄ΠΊΠ»ΡŽΡ‡Π΅Π½ΠΈΠ΅ Carbon Fields
require_once( 'includes/carbon-fields/vendor/autoload.php' );
\Carbon_Fields\Carbon_Fields::boot();

// ΠŸΠΎΠ΄ΠΊΠ»ΡŽΡ‡Π΅Π½ΠΈΠ΅ ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŒΡΠΊΠΈΡ… Ρ„Π°ΠΉΠ»ΠΎΠ² с ΠΏΡ€ΠΎΠΈΠ·Π²ΠΎΠ»ΡŒΠ½Ρ‹ΠΌΠΈ полями
require_once( 'includes/carbon_fields_users_files/cb_theme_options_fields.php' );
require_once( 'includes/carbon_fields_users_files/cb_theme_term_products.php' );
require_once( 'includes/carbon_fields_users_files/cb_theme_post_product.php' );
require_once( 'includes/carbon_fields_users_files/cb_theme_page_service.php' );
require_once( 'includes/carbon_fields_users_files/cb_theme_page_about_company.php' );
require_once( 'includes/carbon_fields_users_files/cb_theme_page_contacts.php' );
require_once( 'includes/carbon_fields_users_files/cb_theme_page_spetspredlozheniya.php' );
require_once( 'includes/carbon_fields_users_files/cb_theme_page_dostavka.php' );
[type] question

Most helpful comment

Not to my knowledge but it is at your own risk :)

>All comments

Not to my knowledge but it is at your own risk :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

halvardos picture halvardos  Β·  3Comments

kaleidoscopique picture kaleidoscopique  Β·  3Comments

abdusfauzi picture abdusfauzi  Β·  3Comments

ittikorns picture ittikorns  Β·  3Comments

leurdo picture leurdo  Β·  3Comments