ACF_Local_JSON::__construct() public ACF 5.9.0
Constructor.
{} Это метод класса: ACF_Local_JSON{}
Хуков нет.
Возвращает
null.
Использование
$ACF_Local_JSON = new ACF_Local_JSON(); $ACF_Local_JSON->__construct();
- (void) (обязательный)
Список изменений
С версии 5.9.0 | Введена. |
Код ACF_Local_JSON::__construct() ACF Local JSON:: construct ACF 5.9.1
public function __construct() {
// Update settings.
acf_update_setting( 'save_json', get_stylesheet_directory() . '/acf-json' );
acf_append_setting( 'load_json', get_stylesheet_directory() . '/acf-json' );
// Add listeners.
add_action( 'acf/update_field_group', array( $this, 'update_field_group' ) );
add_action( 'acf/untrash_field_group', array( $this, 'update_field_group' ) );
add_action( 'acf/trash_field_group', array( $this, 'delete_field_group' ) );
add_action( 'acf/delete_field_group', array( $this, 'delete_field_group' ) );
// Include fields.
add_action( 'acf/include_fields', array( $this, 'include_fields' ) );
}