ACF_Local_JSON::__construct
Constructor.
Метод класса: ACF_Local_JSON{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$ACF_Local_JSON = new ACF_Local_JSON(); $ACF_Local_JSON->__construct();
Список изменений
С версии 5.9.0 | Введена. |
Код ACF_Local_JSON::__construct() ACF Local JSON:: construct ACF 6.4.2
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' ) ); add_action( 'acf/update_post_type', array( $this, 'update_internal_post_type' ) ); add_action( 'acf/untrash_post_type', array( $this, 'update_internal_post_type' ) ); add_action( 'acf/trash_post_type', array( $this, 'delete_internal_post_type' ) ); add_action( 'acf/delete_post_type', array( $this, 'delete_internal_post_type' ) ); add_action( 'acf/update_taxonomy', array( $this, 'update_internal_post_type' ) ); add_action( 'acf/untrash_taxonomy', array( $this, 'update_internal_post_type' ) ); add_action( 'acf/trash_taxonomy', array( $this, 'delete_internal_post_type' ) ); add_action( 'acf/delete_taxonomy', array( $this, 'delete_internal_post_type' ) ); // Include fields. add_action( 'acf/include_fields', array( $this, 'include_fields' ) ); add_action( 'acf/include_post_types', array( $this, 'include_post_types' ) ); add_action( 'acf/include_taxonomies', array( $this, 'include_taxonomies' ) ); }