This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <label for="country">Country</label><span style="color: red !important; display: inline; float: none;">*</span> | |
| <select id="country" name="country" class="form-control"> | |
| <option value="Afganistán">Afganistán</option> | |
| <option value="Åland Islands">Åland Islands</option> | |
| <option value="Albania">Albania</option> | |
| <option value="Argelia">Argelia</option> | |
| <option value="Samoa Americana">Samoa Americana</option> | |
| <option value="Andorra">Andorra</option> | |
| <option value="Angola">Angola</option> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function allow_my_post_types($allowed_post_types) { | |
| $allowed_post_types[] = 'my_post_type'; | |
| return $allowed_post_types; | |
| } | |
| add_filter( 'rest_api_allowed_post_types', 'allow_my_post_types'); |