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' );
Not to my knowledge but it is at your own risk :)
Most helpful comment
Not to my knowledge but it is at your own risk :)