admin
2 months ago
ajax
3 weeks ago
api
3 weeks ago
fields
2 months ago
forms
1 week ago
legacy
3 months ago
locations
3 months ago
post-types
2 months ago
rest-api
2 months ago
walkers
3 months ago
acf-bidirectional-functions.php
3 months ago
acf-field-functions.php
2 months ago
acf-field-group-functions.php
3 months ago
acf-form-functions.php
3 months ago
acf-helper-functions.php
3 months ago
acf-hook-functions.php
3 months ago
acf-input-functions.php
3 months ago
acf-internal-post-type-functions.php
3 months ago
acf-meta-functions.php
3 months ago
acf-post-functions.php
3 months ago
acf-post-type-functions.php
3 months ago
acf-taxonomy-functions.php
3 months ago
acf-user-functions.php
3 months ago
acf-utility-functions.php
3 months ago
acf-value-functions.php
3 months ago
acf-wp-functions.php
3 months ago
assets.php
2 months ago
class-acf-data.php
3 months ago
class-acf-internal-post-type.php
3 months ago
compatibility.php
3 months ago
deprecated.php
3 months ago
fields.php
3 months ago
index.php
1 year ago
l10n.php
3 months ago
local-fields.php
3 months ago
local-json.php
3 weeks ago
local-meta.php
3 months ago
locations.php
3 months ago
loop.php
3 months ago
media.php
3 months ago
rest-api.php
3 months ago
revisions.php
3 weeks ago
third-party.php
3 months ago
upgrades.php
3 months ago
validation.php
3 months ago
wpml.php
3 months ago
rest-api.php
24 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package ACF |
| 4 | * @author WP Engine |
| 5 | * |
| 6 | * © 2026 Advanced Custom Fields (ACF®). All rights reserved. |
| 7 | * "ACF" is a trademark of WP Engine. |
| 8 | * Licensed under the GNU General Public License v2 or later. |
| 9 | * https://www.gnu.org/licenses/gpl-2.0.html |
| 10 | */ |
| 11 | |
| 12 | // Exit if accessed directly. |
| 13 | if ( ! defined( 'ABSPATH' ) ) { |
| 14 | exit; |
| 15 | } |
| 16 | |
| 17 | acf_include( 'includes/rest-api/acf-rest-api-functions.php' ); |
| 18 | acf_include( 'includes/rest-api/class-acf-rest-api.php' ); |
| 19 | acf_include( 'includes/rest-api/class-acf-rest-embed-links.php' ); |
| 20 | acf_include( 'includes/rest-api/class-acf-rest-request.php' ); |
| 21 | |
| 22 | // Initialize. |
| 23 | acf_new_instance( 'ACF_Rest_Api' ); |
| 24 |