├── languages └── pt_BR.mo ├── shared ├── includes │ └── admin │ │ ├── views │ │ ├── html-settings-section.php │ │ ├── html-notice-donation.php │ │ ├── html-settings-field.php │ │ ├── html-notice-missing-rest-api.php │ │ └── html-notice-missing-acf.php │ │ └── classes │ │ ├── class-acf-to-rest-api-donation.php │ │ └── class-acf-to-rest-api-settings.php └── assets │ ├── js │ └── acf-to-rest-api-donation.js │ └── css │ └── acf-to-rest-api-donation.css ├── legacy └── v2 │ ├── lib │ └── endpoints │ │ ├── class-acf-to-rest-api-attachment-controller.php │ │ ├── class-acf-to-rest-api-option-controller.php │ │ ├── class-acf-to-rest-api-term-controller.php │ │ └── class-acf-to-rest-api-controller.php │ └── class-acf-to-rest-api-v2.php ├── v3 ├── lib │ ├── endpoints │ │ ├── class-acf-to-rest-api-users-controller.php │ │ ├── class-acf-to-rest-api-comments-controller.php │ │ ├── class-acf-to-rest-api-posts-controller.php │ │ ├── class-acf-to-rest-api-terms-controller.php │ │ ├── class-acf-to-rest-api-attachments-controller.php │ │ ├── class-acf-to-rest-api-options-controller.php │ │ └── class-acf-to-rest-api-controller.php │ ├── class-acf-to-rest-api-acf-field-settings.php │ └── class-acf-to-rest-api-acf-api.php └── class-acf-to-rest-api-v3.php ├── composer.json ├── readme.txt ├── class-acf-to-rest-api.php └── readme.md /languages/pt_BR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abdullahthewebbee/Acf-to-rest-api-master/HEAD/languages/pt_BR.mo -------------------------------------------------------------------------------- /shared/includes/admin/views/html-settings-section.php: -------------------------------------------------------------------------------- 1 | 7 | 8 |
9 | -------------------------------------------------------------------------------- /shared/assets/js/acf-to-rest-api-donation.js: -------------------------------------------------------------------------------- 1 | ( function( $ ) { 2 | $( '.acf-to-rest-api-donation-button-notice-dismiss' ).click( function( e ) { 3 | e.preventDefault(); 4 | $( this ).closest('.acf-to-rest-api-donation-notice').slideUp(); 5 | $.post( acf_to_rest_api_donation.ajax_url, { 6 | action: 'acf_to_rest_api_dismiss_notice', 7 | nonce: acf_to_rest_api_donation.nonce 8 | } ); 9 | } ); 10 | } )( jQuery ); -------------------------------------------------------------------------------- /legacy/v2/lib/endpoints/class-acf-to-rest-api-attachment-controller.php: -------------------------------------------------------------------------------- 1 | type = 'attachment'; 11 | parent::register_hooks(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /v3/lib/endpoints/class-acf-to-rest-api-users-controller.php: -------------------------------------------------------------------------------- 1 | type = 'user'; 11 | $this->rest_base = 'users'; 12 | parent::__construct(); 13 | } 14 | 15 | public function get_items( $request ) { 16 | $this->controller = new WP_REST_Users_Controller; 17 | return parent::get_items( $request ); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /v3/lib/endpoints/class-acf-to-rest-api-comments-controller.php: -------------------------------------------------------------------------------- 1 | type = 'comment'; 11 | $this->rest_base = 'comments'; 12 | parent::__construct(); 13 | } 14 | 15 | public function get_items( $request ) { 16 | $this->controller = new WP_REST_Comments_Controller; 17 | return parent::get_items( $request ); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /v3/lib/endpoints/class-acf-to-rest-api-posts-controller.php: -------------------------------------------------------------------------------- 1 | type = $type->name; 11 | $this->rest_base = ! empty( $type->rest_base ) ? $type->rest_base : $type->name; 12 | parent::__construct( $type ); 13 | } 14 | 15 | public function get_items( $request ) { 16 | $this->controller = new WP_REST_Posts_Controller( $this->type ); 17 | return parent::get_items( $request ); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /v3/lib/endpoints/class-acf-to-rest-api-terms-controller.php: -------------------------------------------------------------------------------- 1 | type = $type->name; 11 | $this->rest_base = ! empty( $type->rest_base ) ? $type->rest_base : $type->name; 12 | parent::__construct( $type ); 13 | } 14 | 15 | public function get_items( $request ) { 16 | $this->controller = new WP_REST_Terms_Controller( $this->type ); 17 | return parent::get_items( $request ); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /v3/lib/endpoints/class-acf-to-rest-api-attachments-controller.php: -------------------------------------------------------------------------------- 1 | type = $type->name; 11 | $this->rest_base = ! empty( $type->rest_base ) ? $type->rest_base : $type->name; 12 | parent::__construct( $type ); 13 | } 14 | 15 | public function get_items( $request ) { 16 | $this->controller = new WP_REST_Attachments_Controller( $this->type ); 17 | return parent::get_items( $request ); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /shared/includes/admin/views/html-notice-donation.php: -------------------------------------------------------------------------------- 1 | 8 | 9 | 13 | -------------------------------------------------------------------------------- /shared/includes/admin/views/html-settings-field.php: -------------------------------------------------------------------------------- 1 | 8 | 9 | 17 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "airesvsg/acf-to-rest-api", 3 | "description": "Exposes Advanced Custom Fields Endpoints in the WordPress REST API", 4 | "type": "wordpress-plugin", 5 | "version": "3.3.3", 6 | "keywords": ["wordpress", "wp", "rest-api", "acf", "wp-api", "json", "wordpres-plugin", "fields"], 7 | "homepage": "https://github.com/airesvsg/acf-to-rest-api", 8 | "license": "GPL-2.0-only", 9 | "authors": [ 10 | { 11 | "name": "Aires Gonçalves", 12 | "email": "airesvsg@gmail.com", 13 | "homepage": "http://airesgoncalves.com", 14 | "role": "Developer" 15 | } 16 | ], 17 | "support": { 18 | "email": "airesvsg@gmail.com", 19 | "issues": "https://github.com/airesvsg/acf-to-rest-api/issues" 20 | }, 21 | "require": { 22 | "php": ">=5.3.2", 23 | "composer/installers": "~1.0" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /legacy/v2/lib/endpoints/class-acf-to-rest-api-option-controller.php: -------------------------------------------------------------------------------- 1 | rest_base = 'options'; 12 | } 13 | 14 | public function register_routes() { 15 | register_rest_route( $this->namespace, '/' . $this->rest_base . '/?(?P27 | 28 |
27 | 28 |