ACF_Rest_Api::__construct
Метод класса: ACF_Rest_Api{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ACF_Rest_Api = new ACF_Rest_Api(); $ACF_Rest_Api->__construct();
Код ACF_Rest_Api::__construct() ACF Rest Api:: construct ACF 6.8.11
public function __construct() {
// Priority 9 runs before rest_handle_options_request (priority 10).
add_filter( 'rest_pre_dispatch', array( $this, 'initialize' ), 9, 3 );
add_action( 'rest_api_init', array( $this, 'register_field' ) );
add_filter( 'rest_endpoints', array( $this, 'enrich_options_endpoint_args' ) );
}